Skip to main content

commit_msg_hook

Function commit_msg_hook 

Source
pub fn commit_msg_hook(patterns: &[String]) -> String
Expand description

The commit-msg hook installed into every candidate worktree.

POSIX sh plus sed, which is what git runs hooks with on every platform magi supports, git-for-windows included. sed is given a case-insensitive expansion of each configured substring so the hook and strip_attribution agree on what counts as attribution.