feat(gittree): shared-worktree-safe commit via private GIT_INDEX_FILE #93
Labels
No labels
burndown-2026-06
sunday-sprint
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/cli-guard#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source:
cmd/coily/git_commit.go-runGitCommit+ helpers, uses a privateGIT_INDEX_FILE. Depends only oncli-guard/shell+verb. Notably already free of coily/Kai paths (onlycoily git commit:/coily#7 appear, in error strings).What it does: a concurrency-safe commit. Requires
-m/-Fplus an explicit-- <paths>, commits the worktree content of exactly those paths against a privateGIT_INDEX_FILEseeded from HEAD, refuses the editor, then best-effort resyncs the shared index. Lets concurrent sessions sharing one working tree commit without crossing each other's messages or staged content.Generic core (lift this): the private-index commit technique, the argv split at
--, message-source/editor detection, andgitArgvassembly - all pure git mechanics.Consumer seam to parameterize: error-message branding (
coily git commit:prefix, coily#7 refs) -> caller-supplied prefix/template. Thecli.Commandwiring stays in coily;runGitCommitcore + helpers become aSafeCommit-style primitive.Suggested home (pre-refactor): extend
gittree.Done when:
godoc-current.txtregenerated (scripts/check-godoc-current.sh --update)make testgreen both sidesclosesthis issueWhy it matters: shared-worktree concurrency is a real hazard for any multi-session guarded CLI - this is exactly the hardened primitive cli-guard exists to centralize.
Backlog burndown 2026-06-17: closing low-priority (P3/P4) to bring the open count to a manageable level. Nothing lost — reopen if this resurfaces. Batch tag:
burndown-2026-06.