Skip to main content

diff_attr_external_driver

Function diff_attr_external_driver 

Source
pub fn diff_attr_external_driver(
    git_dir: &Path,
    config: &ConfigSet,
    path: &str,
) -> Option<(String, bool)>
Expand description

Resolved external diff driver from a path’s diff=<name> attribute.

Mirrors Git’s userdiff_find_by_pathdrv->external: when a path has a diff=<name> attribute and diff.<name>.command is configured, that driver takes precedence over GIT_EXTERNAL_DIFF / diff.external. The boolean is diff.<name>.trustExitCode.