t4006: resurrect commented-out tests
commit426fd36f4a899b5c2299fe2eed82affc7385c8cf
authorJeff King <peff@peff.net>
Thu, 24 Jan 2019 12:27:29 +0000 (24 07:27 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Jan 2019 19:58:38 +0000 (24 11:58 -0800)
tree1654023f96c872c909fb04d9f47bc8b40978800c
parent0d0ac3826a3bbb9247e39e12623bbcfdd722f24c
t4006: resurrect commented-out tests

This set of tests was added by 4434e6ba6c (tests: check --[short]stat
output after chmod, 2012-05-01), and is primarily about the handling of
binary versus text files.

Later, 74faaa16f0 (Fix "git diff --stat" for interesting - but empty -
file changes, 2012-10-17) changed the stat output so that the empty text
file is mentioned rather than omitted. That commit just comments out
these tests. There's no discussion in the commit message, but the
original email[1] says:

  NOTE! This does break two of our tests, so we clearly did this on
  purpose, or at least tested for it. I just uncommented the subtests
  that this makes irrelevant, and changed the output of another one.

I don't think they're irrelevant, though. We should be testing this
"mode change only" case and making sure that it has the post-74faaa16f0
behavior. So this commit brings back those tests, with the current
expected output.

[1] https://public-inbox.org/git/CA+55aFz88GPJcfMSqiyY+u0Cdm48bEyrsTGxHVJbGsYsDg=Q5w@mail.gmail.com/

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4006-diff-mode.sh