1 git-mergetool{litdd}lib(1)
2 ==========================
6 git-mergetool--lib - Common Git merge tool shell scriptlets
11 'TOOL_MODE=(diff|merge) . "$(git --exec-path)/git-mergetool{litdd}lib"'
16 This is not a command the end user would want to run. Ever.
17 This documentation is meant for people who are studying the
18 Porcelain-ish scripts and/or are writing new ones.
20 The 'git-mergetool{litdd}lib' scriptlet is designed to be sourced (using
21 `.`) by other shell scripts to set up functions for working
24 Before sourcing 'git-mergetool{litdd}lib', your script must set `TOOL_MODE`
25 to define the operation mode for the functions listed below.
26 'diff' and 'merge' are valid values.
34 returns the custom command for a merge tool.
37 returns the custom path for a merge tool.
40 launches a merge tool given the tool name and a true/false
41 flag to indicate whether a merge base is present.
42 '$MERGED', '$LOCAL', '$REMOTE', and '$BASE' must be defined
43 for use by the merge tool.
47 Part of the linkgit:git[1] suite