NAME
git-mergetoollib - Common Git merge tool shell scriptlets SYNOPSIS
TOOLMODE=(diff|merge) . "$(git exec-path)/git-mergetoollib" DESCRIPTION This is not a command the end user would want to run. Ever. This
documentation is meant for people who are studying the Porcelain-ish scripts and/or are writing new ones.
The git-mergetoollib scriptlet is designed to be sourced (using .) by other shell scripts to set up functions for working with Git merge tools.
Before sourcing git-mergetoollib, your script must set TOOLMODE to define the operation mode for the functions listed below. diff and merge are valid values. FUNCTIONS getmergetool returns a merge tool. getmergetoolcmd returns the custom command for a merge tool. getmergetoolpath returns the custom path for a merge tool. runmergetool launches a merge tool given the tool name and a true/false flag to
indicate whether a merge base is present. $MERGED, $LOCAL,
$REMOTE, and $BASE must be defined for use by the merge tool. GIT Part of the git(1) suite
Git 1.8.3.1 11/02/2018 GIT-MERGETOOLLI(1)