pub fn handle_prepare_commit_msg(
git_dir: &Path,
commit_source: Option<&str>,
) -> Result<()>Expand description
Handle the prepare-commit-msg hook.
Detects squash operations and writes pending-squash.json so that the post-commit hook can route to squash synthesis.
Detection signals (any one sufficient):
commit_sourceargument is “squash”.git/SQUASH_MSGfile existsCHRONICLE_SQUASH_SOURCESenvironment variable is set