diff options
author | Thomas Guyot-Sionnest <tguyot@gmail.com> | 2020-09-24 03:41:41 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-24 12:31:45 -0700 |
commit | ff0c7fa8cbd7f7d5e81c2501222b60f0aac30bb9 (patch) | |
tree | 13b458b7986c3cfafa1984b0bb8d1f45f691c904 /templates/hooks--pre-push.sample | |
parent | Sixteenth batch (diff) | |
download | tgif-ff0c7fa8cbd7f7d5e81c2501222b60f0aac30bb9.tar.xz |
diff: fix modified lines stats with --stat and --numstat
Only skip diffstats when both oids are valid and identical. This check
was causing both false-positives (files included in diffstats with no
actual changes (0 lines modified) and false-negatives (showing 0 lines
modified in stats when files had actually changed).
Also replaced same_contents with may_differ to avoid confusion.
Signed-off-by: Thomas Guyot-Sionnest <tguyot@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates/hooks--pre-push.sample')
0 files changed, 0 insertions, 0 deletions