difftool: Use symlinks when diffing against the worktree
authorDavid Aguilar <davvid@gmail.com>
Mon, 23 Jul 2012 06:05:30 +0000 (23:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jul 2012 16:35:53 +0000 (09:35 -0700)
commit1f2293457579a5bf22bb9c8324ded22b10705cc2
tree3f2fb41cbc8016c0891ba19017ecf091ef98174e
parentb965e8f44ad76a810c60406d01b45b87d6ac2701
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>
Documentation/git-difftool.txt
git-difftool.perl