Skip to content

"diff --stat" counting fixes

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5test: add failing tests for "diff --stat" to t4049t/t4049-diff-stat-count.sh+45 -10 replies
2/5diff --stat: status of unmodified pair in diff-q is not zerodiff.c+1 -10 replies
3/5diff --stat: use "file" temporary variable to refer to data->files[i]diff.c+13 -130 replies
4/5diff --stat: move the "total count" logic to the last loopdiff.c t/t4049-diff-stat-count.sh+13 -100 replies
5/5diff --stat: do not count "unmerged" entriesdiff.c t/t4049-diff-stat-count.sh+5 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] "diff --stat" counting fixes

It turns out that there are at least two bugs in the diffstat counting code. This series comes on top of the earlier 74faaa1 (Fix "git diff --stat" for interesting - but empty - file changes, 2012-10-17) to fix them.

Junio C Hamano (5):
test: add failing tests for "diff --stat" to t4049
diff --stat: status of unmodified pair in diff-q is not zero diff --stat: use "file" temporary variable to refer to data->files[i] diff --stat: move the "total count" logic to the last loop diff --stat: do not count "unmerged" entries

 diff.c                     | 49 +++++++++++++++++++++++++---------------------
 t/t4049-diff-stat-count.sh | 46 ++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 72 insertions(+), 23 deletions(-)
Signature · 1 line
1.8.0.1.331.g808d2af