summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2010-12-14 09:18:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-12-16 21:01:36 (GMT)
commit4a689afb030c1cd5aa1c141db94bbf9dde42f05e (patch)
treee6cb1dd0c3149e47f6bc2187a51ade8057cdd35a /Documentation
parent51baceeec4884c14ac8c77902ec6973ab36421ca (diff)
downloadgit-4a689afb030c1cd5aa1c141db94bbf9dde42f05e.zip
git-4a689afb030c1cd5aa1c141db94bbf9dde42f05e.tar.gz
git-4a689afb030c1cd5aa1c141db94bbf9dde42f05e.tar.bz2
difftool: provide basename to external tools
Currently, only configured diff helpers get the basename of the file being compared. Tools specified with "git difftool -x" only get the names of temporary files for the different versions. Export BASE so that an external tool can read the name from the environment. Rather than using a third argument, this avoids breaking existing scripts which may somewhat carelessly be using "$@" rather than "$1" "$2". Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-difftool.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/git-difftool.txt b/Documentation/git-difftool.txt
index 498b161..5738432 100644
--- a/Documentation/git-difftool.txt
+++ b/Documentation/git-difftool.txt
@@ -64,6 +64,7 @@ with custom merge tool commands and has the same value as `$MERGED`.
Specify a custom command for viewing diffs.
'git-difftool' ignores the configured defaults and runs
`$command $LOCAL $REMOTE` when this option is specified.
+ Additionally, `$BASE` is set in the environment.
-g::
--gui::