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) | ||
commit | 9d865356abc08b253bc15b5fb50471d80c828be1 | |
tree | dc3e6101f86d3a3771dba906c95b5d50686b5ed5 | tree | snapshot |
parent | f88d225feb117f0429540da90b2552e198fa2e82 | commit | diff |
diff Porcelain: do not disable auto index refreshing on -C -C
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>
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>
diff.c | diff | blob | history |