Skip to content

Interface: GitCheckpointPayload ​

Defined in: git/src/executors/git-checkpoint-payload.ts:24

Serialized checkpoint payload produced by GitCowWorktreeScopeDriver.serializeCheckpoint().

Captures worktree-local .git metadata (headSha, headRawContent, indexTreeSha, infoExcludeContent, meta), the porcelain v2 statusMap, the temporary-index treeSha, and any oversizedUntrackedBlobs.

Properties ​

PropertyModifierTypeDescriptionDefined in
headRawContentreadonlystringExact raw file content of <gitdir>/HEAD.git/src/executors/git-checkpoint-payload.ts:28
headShareadonlystringResolved commit SHA of HEAD (git rev-parse HEAD).git/src/executors/git-checkpoint-payload.ts:26
ignoredPathsreadonlyreadonly string[]Paths ignored at checkpoint time (used when a .gitignore file changes mid-step).git/src/executors/git-checkpoint-payload.ts:38
indexTreeShareadonlystringTree OID of the live <gitdir>/index at checkpoint time.git/src/executors/git-checkpoint-payload.ts:30
infoExcludeContentreadonlystring | nullRaw content of <gitdir>/info/exclude, or null when absent.git/src/executors/git-checkpoint-payload.ts:32
metareadonlyobjectSnapshot of <gitdir>/harness-meta.json at checkpoint time.git/src/executors/git-checkpoint-payload.ts:34
meta.baseBranchpublicstring-git/src/schemas/git-receipts.schema.ts:37
meta.baseRefpublicstring-git/src/schemas/git-receipts.schema.ts:36
meta.branchName?publicstring-git/src/schemas/git-receipts.schema.ts:38
meta.inFlightCommitAndPush?publicobject-git/src/schemas/git-receipts.schema.ts:49
meta.inFlightCommitAndPush.preStepBaseRefpublicstring-git/src/schemas/git-receipts.schema.ts:52
meta.inFlightCommitAndPush.preStepHeadShapublicstring-git/src/schemas/git-receipts.schema.ts:51
meta.inFlightCommitAndPush.targetBranch?publicstring-git/src/schemas/git-receipts.schema.ts:53
meta.inFlightMerge?publicobject-git/src/schemas/git-receipts.schema.ts:41
meta.inFlightMerge.mergedTreeShapublicstring-git/src/schemas/git-receipts.schema.ts:44
meta.inFlightMerge.priorTreeShapublicstring-git/src/schemas/git-receipts.schema.ts:45
meta.inFlightMerge.targetHeadShapublicstring-git/src/schemas/git-receipts.schema.ts:43
meta.inFlightMerge.unresolvedConflictPathspublicRecord<string, string>-git/src/schemas/git-receipts.schema.ts:46
meta.pendingParentHeadSha?publicstring-git/src/schemas/git-receipts.schema.ts:40
meta.unresolvedConflictPathspublicRecord<string, string>-git/src/schemas/git-receipts.schema.ts:39
nodeModulesDigestreadonlystringDigest of node_modules tree state at checkpoint time for tamper detection in diffEffects.git/src/executors/git-checkpoint-payload.ts:40
oversizedUntrackedBlobsreadonlyReadonly<Record<string, OversizedUntrackedBlobRecord>>Map of untracked files exceeding maxUntrackedFileSizeBytes stored in <gitdir>/harness-ckpt-blobs/.git/src/executors/git-checkpoint-payload.ts:44
statusMapreadonlyReadonly<Record<string, string>>Map from repository-relative file path to ${mode}:${sha256} (or 'DELETED').git/src/executors/git-checkpoint-payload.ts:36
treeShareadonlystringGit tree SHA capturing headSha plus all dirty tracked and non-oversized untracked files.git/src/executors/git-checkpoint-payload.ts:42

Released under the MIT License.