Merge branch 'lt/diff-stat-show-0-lines' into next
commitde89eede776717b6fee3937e2de0c1163376262a
authorJunio C Hamano <gitster@pobox.com>
Wed, 28 Nov 2012 21:57:55 +0000 (28 13:57 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Nov 2012 21:57:55 +0000 (28 13:57 -0800)
treebd51a23f58a4679df251d14291fcbf8e20ac4f77
parent7114637205e7aa909b9fe0cd505db2ade31161db
parent20c8cde45656fc187e06088ef5baf0bbdfdf70bd
Merge branch 'lt/diff-stat-show-0-lines' into next

"git diff --stat" miscounted the total number of changed lines when
binary files were involved and hidden beyond --stat-count.  It also
miscounted the total number of changed files when there were
unmerged paths.

* lt/diff-stat-show-0-lines:
  diff --shortstat: do not count "unmerged" entries
  diff --stat: do not count "unmerged" entries
  diff --stat: move the "total count" logic to the last loop
  diff --stat: use "file" temporary variable to refer to data->files[i]
  diff --stat: status of unmodified pair in diff-q is not zero
  test: add failing tests for "diff --stat" to t4049
diff.c