Function branchless::util::run_hook[][src]

pub fn run_hook(
    git_run_info: &GitRunInfo,
    repo: &Repository,
    hook_name: &str,
    event_tx_id: EventTransactionId,
    args: &[impl AsRef<str>],
    stdin: Option<String>
) -> Result<()>
Expand description

Run a provided Git hook if it exists for the repository.

See the man page for githooks(5) for more detail on Git hooks.