Skip to content

GitBulkOperationResult<T>

The result of BulkOperationGitRepo.runBulkOperation.

Import:

import type { GitBulkOperationResult } from '@mnaoumov/obsidian-lib/desktop-bulk-operation-git';

Signature:

export interface GitBulkOperationResult<T>

Properties

PropertyTypeDescription
commitShanull | stringThe hash of the commit recording the operation, or null when the operation changed nothing.
operationIdstringThe operation id, such as OP12.
recoveredOperationIdnull | stringThe id the operation started under, when its lock was recovered as stale while it ran, or null otherwise.

The changes made before the recovery are in the <recoveredOperationId> interrupted commit, and the rest went into a fresh operationId, so undoing the whole operation takes reverting both.
resultTThe operation's result.

Links to this page: