MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / post_commit_snippet

Function post_commit_snippet

src/agents/mod.rs:1479–1485  ·  view source on GitHub ↗

The hook snippet appended to (or written as) the post-commit script.

(tracedecay_bin: &str)

Source from the content-addressed store, hash-verified

1477
1478/// The hook snippet appended to (or written as) the post-commit script.
1479fn post_commit_snippet(tracedecay_bin: &str) -> String {
1480 let bin = quote_posix_command_arg(&tracedecay_bin.replace('\\', "/"));
1481 format!(
1482 "{HOOK_MARKER}\n\
1483 {bin} sync >/dev/null 2>&1 &\n"
1484 )
1485}
1486
1487/// If a global git `post-commit` hook is not already set up for tracedecay,
1488/// interactively asks the user whether to install one. Silently succeeds if

Calls 1

quote_posix_command_argFunction · 0.85