author | Jeff King <peff@peff.net> | |
Mon, 23 May 2011 20:16:59 +0000 (16:16 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 23 May 2011 22:40:51 +0000 (15:40 -0700) | ||
commit | c95b99bb5d5f3aed88f8154371a813ebd0d2fa1d | |
tree | bd5dd1b32ac7d6b9958aa0893ce5da6cf70bdcb8 | tree | snapshot |
parent | 7c978a068f0575a90570e4579c71a5f641bdfad3 | commit | diff |
combine-diff: calculate mode_differs earlier
One loop combined both the patch generation and checking
whether there was any mode change to report. Let's factor
that into two separate loops, as we may care about the mode
change even if we are not generating patches (e.g., because
we are showing a binary diff, which will come in a future
patch).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
One loop combined both the patch generation and checking
whether there was any mode change to report. Let's factor
that into two separate loops, as we may care about the mode
change even if we are not generating patches (e.g., because
we are showing a binary diff, which will come in a future
patch).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
combine-diff.c | diff | blob | history |