summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f88d225)
raw | patch | inline | side by side (parent: f88d225)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 7 Sep 2008 02:09:16 +0000 (19:09 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 7 Sep 2008 02:09:16 +0000 (19:09 -0700) |
When we enabled the automatic refreshing of the index to "diff" Porcelain,
we disabled it when --find-copies-harder was asked, but there is no good
reason to do so. In the following command sequence, the first "diff"
shows an "empty" diff exposing stat dirtyness, while the second one does
not.
$ >foo
$ git add foo
$ touch foo
$ git diff -C -C
$ git diff -C
This fixes the inconsistency.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
we disabled it when --find-copies-harder was asked, but there is no good
reason to do so. In the following command sequence, the first "diff"
shows an "empty" diff exposing stat dirtyness, while the second one does
not.
$ >foo
$ git add foo
$ touch foo
$ git diff -C -C
$ git diff -C
This fixes the inconsistency.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c | patch | blob | history |
index b3a7da70a59788f8edf5983e8e0b4629ea56db20..85d690183f8c05500753033753d249d76f424e82 100644 (file)
--- a/diff.c
+++ b/diff.c
if (DIFF_OPT_TST(options, QUIET))
return;
- if (options->skip_stat_unmatch && !DIFF_OPT_TST(options, FIND_COPIES_HARDER))
+ if (options->skip_stat_unmatch)
diffcore_skip_stat_unmatch(options);
if (options->break_opt != -1)
diffcore_break(options->break_opt);