diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-06-06 12:18:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-06 12:18:47 -0700 |
commit | 2fc0c022e60f54be55d6065b9a8abccdc0f67bab (patch) | |
tree | d3d9bf5d28501b57fd4130c05f9da212c0784936 /git-difftool.perl | |
parent | Merge branch 'fc/show-branch-in-rebase-am' (diff) | |
parent | difftool --dir-diff: allow changing any clean working tree file (diff) | |
download | tgif-2fc0c022e60f54be55d6065b9a8abccdc0f67bab.tar.xz |
Merge branch 'ks/difftool-dir-diff-copy-fix'
"difftool --dir-diff" did not copy back changes made by the
end-user in the diff tool backend to the working tree in some
cases.
* ks/difftool-dir-diff-copy-fix:
difftool --dir-diff: allow changing any clean working tree file
Diffstat (limited to 'git-difftool.perl')
-rwxr-xr-x | git-difftool.perl | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/git-difftool.perl b/git-difftool.perl index 8a75205537..e57d3d1295 100755 --- a/git-difftool.perl +++ b/git-difftool.perl @@ -85,13 +85,9 @@ sub exit_cleanup sub use_wt_file { - my ($repo, $workdir, $file, $sha1, $symlinks) = @_; + my ($repo, $workdir, $file, $sha1) = @_; my $null_sha1 = '0' x 40; - if ($sha1 ne $null_sha1 and not $symlinks) { - return 0; - } - if (! -e "$workdir/$file") { # If the file doesn't exist in the working tree, we cannot # use it. @@ -213,8 +209,7 @@ EOF if ($rmode ne $null_mode) { my ($use, $wt_sha1) = use_wt_file($repo, $workdir, - $dst_path, $rsha1, - $symlinks); + $dst_path, $rsha1); if ($use) { push @working_tree, $dst_path; $wtindex .= "$rmode $wt_sha1\t$dst_path\0"; |