Skip to main content
Stored under refs/notes/gitvow/<session-id> (gitvow 0.1 used the single ref refs/notes/sessions). First line gitvow-session, then JSON:

attribution

decisions[]

Trailers

Added by prepare-commit-msg when .git/gitvow-session.json holds a session id and a pending_commit timestamp younger than five minutes, which the PreToolUse gate sets when the agent runs git commit and PostToolUse clears afterwards. Idempotent: a message that already has Gitvow-Session: is left alone. A note is written only when the commit at HEAD carries the trailer. Gitvow-Accepted and Gitvow-Declined are written for every finding decided with gitvow decide before the commit, on agent and human commits alike. Gitvow-Open is written on a human commit for each finding nobody decided (policy decisions.mode open). The post-commit hook clears the findings the commit carried. Gitvow-Revisits marks an empty commit written by gitvow revisit; its decision trailers answer the named commit’s findings again. See Decisions.