OSDN Git Service

diff: allow lowercase letter to specify what change class to exclude
authorJunio C Hamano <gitster@pobox.com>
Wed, 17 Jul 2013 23:19:19 +0000 (16:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jul 2013 00:17:39 +0000 (17:17 -0700)
commit7f2ea5f0f2fb056314092cce23202096ca70f076
tree32f7649879ec3012f3f92d659fee945b9aed265b
parentbf142ec4346385553918bc53f203b205091aa362
diff: allow lowercase letter to specify what change class to exclude

In order to express "we do not care about deletions", we had to say
"--diff-filter=ACMRTXUB", giving all the possible change class
except for the one we do not want, "D".

This is cumbersome.  As all the change classes are in uppercase,
allow their lowercase counterpart to selectively exclude the class
from the output.  When such a negated change class is in the input,
start the filter option with the full bits set.

This would allow us to express the old "show-diff -q" with
"git diff-files --diff-filter=d".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c