Exit codes and auto-GC guard
Shim exit status
For unleased commands drawbar replaces itself with the real git through
exec, so the caller sees git’s own exit code, or git’s death by signal,
exactly as it would without the shim, and signals sent to the shim reach git
directly. Leased commands report git’s status the same way, as described
above. drawbar exits with a status of its own only when git never starts:
| Status | Meaning |
|---|---|
75 | A leased command did not get the lease, because another git command held it for the whole wait or the lock file could not be opened. |
78 | The real git could not be resolved, because DRAWBAR_DEPTH reached 16, DRAWBAR_REAL_GIT or AGENT_GIT_REAL names the shim or a copy of it, or no candidate is a usable git. |
126 | The resolved git exists but could not be executed. |
127 | The resolved git disappeared before it could be executed. |
Each of these prints one drawbar: line on stderr that names the cause and
the fix. See ADR 0002.
Auto-GC guard
In shim mode drawbar puts -c gc.auto=0 ahead of the caller’s arguments,
so the git gc --auto that commands such as fetch, merge and commit
start on their own finds no work to do while sibling worktrees are busy.
Explicit git gc and git maintenance run without it, and that holds when
global flags come first, as in git -C widgets gc. A -c gc.auto=<n> the
caller passes still wins, because git keeps the last value it reads.
Set DRAWBAR_GC_AUTO_GUARD=0 to turn the guard off, or any other non-empty
value to turn it on. When the variable is unset or empty,
lease.suppress_auto_gc in the config decides, and it defaults to true.