pub fn git_hook_block(shell: &str, db: &str) -> StringExpand description
The block a git hook runs: one backgrounded, silenced sync.
Backgrounded (( … & ) in a subshell, so no job-control notice reaches the
terminal) because a hook must not make git commit wait on a graph
refresh, and silenced because a hook that prints — or fails — on a store
that is momentarily busy would be noise on every commit. sync exits 3 when
another process holds the write lock, and the next commit picks the work up.
shell is the already-quoted command prefix from McpCommand::shell;
the database path is quoted here, since a path with a space in it would
otherwise be word-split into two arguments.