1GIT-MERGETOOL--LI(1)              Git Manual              GIT-MERGETOOL--LI(1)
2
3
4

NAME

6       git-mergetool--lib - Common Git merge tool shell scriptlets
7

SYNOPSIS

9       TOOL_MODE=(diff|merge) . "$(git --exec-path)/git-mergetool--lib"
10
11

DESCRIPTION

13       This is not a command the end user would want to run. Ever. This
14       documentation is meant for people who are studying the Porcelain-ish
15       scripts and/or are writing new ones.
16
17       The git-mergetool--lib scriptlet is designed to be sourced (using .) by
18       other shell scripts to set up functions for working with Git merge
19       tools.
20
21       Before sourcing git-mergetool--lib, your script must set TOOL_MODE to
22       define the operation mode for the functions listed below. diff and
23       merge are valid values.
24

FUNCTIONS

26       get_merge_tool
27           returns a merge tool. the return code is 1 if we returned a guessed
28           merge tool, else 0.  $GIT_MERGETOOL_GUI may be set to true to
29           search for the appropriate guitool.
30
31       get_merge_tool_cmd
32           returns the custom command for a merge tool.
33
34       get_merge_tool_path
35           returns the custom path for a merge tool.
36
37       run_merge_tool
38           launches a merge tool given the tool name and a true/false flag to
39           indicate whether a merge base is present.  $MERGED, $LOCAL,
40           $REMOTE, and $BASE must be defined for use by the merge tool.
41

GIT

43       Part of the git(1) suite
44
45
46
47Git 2.24.1                        12/10/2019              GIT-MERGETOOL--LI(1)
Impressum