summaryrefslogtreecommitdiff
path: root/pathspec.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <tguyot@gmail.com>2020-09-24 03:41:41 -0400
committerJunio C Hamano <gitster@pobox.com>2020-09-24 12:31:45 -0700
commitff0c7fa8cbd7f7d5e81c2501222b60f0aac30bb9 (patch)
tree13b458b7986c3cfafa1984b0bb8d1f45f691c904 /pathspec.c
parente1cfff676549cdcd702cbac105468723ef2722f4 (diff)
downloadgit-ff0c7fa8cbd7f7d5e81c2501222b60f0aac30bb9.tar.gz
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 'pathspec.c')
0 files changed, 0 insertions, 0 deletions