]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-mergetool--lib.txt
Improve test for pthreads flag
[thirdparty/git.git] / Documentation / git-mergetool--lib.txt
CommitLineData
28394787
JH
1git-mergetool{litdd}lib(1)
2==========================
21d0ba7e
DA
3
4NAME
5----
6git-mergetool--lib - Common git merge tool shell scriptlets
7
8SYNOPSIS
9--------
47d65924 10'TOOL_MODE=(diff|merge) . "$(git --exec-path)/git-mergetool--lib"'
21d0ba7e
DA
11
12DESCRIPTION
13-----------
14
15This is not a command the end user would want to run. Ever.
16This documentation is meant for people who are studying the
17Porcelain-ish scripts and/or are writing new ones.
18
28394787 19The 'git-mergetool{litdd}lib' scriptlet is designed to be sourced (using
21d0ba7e
DA
20`.`) by other shell scripts to set up functions for working
21with git merge tools.
22
28394787 23Before sourcing 'git-mergetool{litdd}lib', your script must set `TOOL_MODE`
47d65924
DA
24to define the operation mode for the functions listed below.
25'diff' and 'merge' are valid values.
21d0ba7e
DA
26
27FUNCTIONS
28---------
29get_merge_tool::
47d65924 30 returns a merge tool.
21d0ba7e
DA
31
32get_merge_tool_cmd::
33 returns the custom command for a merge tool.
34
35get_merge_tool_path::
36 returns the custom path for a merge tool.
37
38run_merge_tool::
39 launches a merge tool given the tool name and a true/false
40 flag to indicate whether a merge base is present.
47d65924
DA
41 '$MERGED', '$LOCAL', '$REMOTE', and '$BASE' must be defined
42 for use by the merge tool.
21d0ba7e 43
21d0ba7e
DA
44GIT
45---
46Part of the linkgit:git[1] suite