difftool --dir-diff: allow changing any clean working tree file
commit32eaf1de7f79c4ba09f3de3261c84e52e0a67af5
authorKenichi Saita <nitoyon@gmail.com>
Wed, 29 May 2013 16:01:23 +0000 (30 01:01 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 May 2013 19:50:08 +0000 (29 12:50 -0700)
tree116a16ece696460c5bcb469ddfe3740d5aa5e6f4
parentedca4152560522a431a51fc0a06147fc680b5b18
difftool --dir-diff: allow changing any clean working tree file

The temporary directory prepared by "difftool --dir-diff" to
show the result of a change can be modified by the user via
the tree diff program, and we try hard not to lose changes
to them after tree diff program returns to us.

However, the set of files to be copied back is computed
differently between --symlinks and --no-symlinks modes.  The
former checks all paths that start out as identical to the
working tree file, while the latter checks paths that
already had a local modification in the working tree,
allowing changes made in the tree diff program to paths that
did not have any local change to be lost.

Signed-off-by: Kenichi Saita <nitoyon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-difftool.perl
t/t7800-difftool.sh