The hook snippet appended to (or written as) the post-commit script.
(tracedecay_bin: &str)
| 1477 | |
| 1478 | /// The hook snippet appended to (or written as) the post-commit script. |
| 1479 | fn 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 |