summaryrefslogtreecommitdiff
path: root/t/helper/test-tool.h
diff options
context:
space:
mode:
authorLibravatar Thomas Guyot-Sionnest <tguyot@gmail.com>2020-09-24 03:41:41 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-09-24 12:31:45 -0700
commitff0c7fa8cbd7f7d5e81c2501222b60f0aac30bb9 (patch)
tree13b458b7986c3cfafa1984b0bb8d1f45f691c904 /t/helper/test-tool.h
parentSixteenth batch (diff)
downloadtgif-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 't/helper/test-tool.h')
0 files changed, 0 insertions, 0 deletions