pub fn merge_git_hook(
hook_file: &Path,
shell: &str,
store: &StoreRef,
) -> Result<bool, CliError>Expand description
Put the sync block in hook_file, creating the file (mode 755, with a
#!/bin/sh line) if it is not there. Returns whether anything changed.
Every line the user has in the file is preserved, and running this twice
with the same arguments writes nothing the second time. A file whose
mushroomdb block was hand-edited so its closing marker is gone is an error
and is left byte-for-byte alone; see [strip_hook_block].