]> git.ipfire.org Git - thirdparty/git.git/commit - diff.h
diff: preparse --diff-filter string argument
authorJunio C Hamano <gitster@pobox.com>
Wed, 17 Jul 2013 22:05:46 +0000 (15:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jul 2013 23:23:34 +0000 (16:23 -0700)
commit1ecc1cbd3a7642c4f517d086d7b45d6341172dfe
tree33743a44c6b9c89d7688f0a00512c45e523f6f5e
parent08578fa13eeec7079101f7ac52208aec83d54c62
diff: preparse --diff-filter string argument

Instead of running strchr() on the list of status characters over
and over again, parse the --diff-filter option into bitfields and
use the bits to see if the change to the filepair matches the status
requested.

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