diff: reject unknown change class given to --diff-filter
commitbf142ec4346385553918bc53f203b205091aa362
authorJunio C Hamano <gitster@pobox.com>
Wed, 17 Jul 2013 22:27:19 +0000 (17 15:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jul 2013 23:24:14 +0000 (17 16:24 -0700)
tree5512961c02737495d66f1ef523bcc94dbdd6662e
parent1ecc1cbd3a7642c4f517d086d7b45d6341172dfe
diff: reject unknown change class given to --diff-filter

We used to accept "git diff --diff-filter=Q" (note that there is no
such change class 'Q') silently and showed no output (because there
is no such change class 'Q').

Error out when such an input is given.

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