summaryrefslogtreecommitdiff
path: root/Documentation/git-difftool.txt
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2012-07-23 06:05:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-23 16:35:53 (GMT)
commit1f2293457579a5bf22bb9c8324ded22b10705cc2 (patch)
tree3f2fb41cbc8016c0891ba19017ecf091ef98174e /Documentation/git-difftool.txt
parentb965e8f44ad76a810c60406d01b45b87d6ac2701 (diff)
downloadgit-1f2293457579a5bf22bb9c8324ded22b10705cc2.zip
git-1f2293457579a5bf22bb9c8324ded22b10705cc2.tar.gz
git-1f2293457579a5bf22bb9c8324ded22b10705cc2.tar.bz2
difftool: Use symlinks when diffing against the worktree
Teach difftool's --dir-diff mode to use symlinks to represent files from the working copy, and make it the default behavior for the non-Windows platforms. Using symlinks is simpler and safer since we do not need to worry about copying files back into the worktree. The old behavior is still available as --no-symlinks. Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-difftool.txt')
-rw-r--r--Documentation/git-difftool.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/git-difftool.txt b/Documentation/git-difftool.txt
index 31fc2e3..313d54e 100644
--- a/Documentation/git-difftool.txt
+++ b/Documentation/git-difftool.txt
@@ -66,6 +66,14 @@ of the diff post-image. `$MERGED` is the name of the file which is
being compared. `$BASE` is provided for compatibility
with custom merge tool commands and has the same value as `$MERGED`.
+--symlinks::
+--no-symlinks::
+ 'git difftool''s default behavior is create symlinks to the
+ working tree when run in `--dir-diff` mode.
++
+ Specifying `--no-symlinks` instructs 'git difftool' to create
+ copies instead. `--no-symlinks` is the default on Windows.
+
--tool-help::
Print a list of diff tools that may be used with `--tool`.