Skip to main content

process_trailers

Function process_trailers 

Source
pub fn process_trailers(
    input: &str,
    opts: &ProcessTrailerOptions,
    new_trailer_args: &[NewTrailerArg],
    git_dir: Option<&Path>,
) -> String
Expand description

Process a commit message: parse trailer block, apply config and --trailer args, emit result.

git_dir selects which repository config to load (with standard cascade). When None, only non-repo config layers are used (matches git interpret-trailers outside a repo).