]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
diff: factor out match_filter()
authorJunio C Hamano <gitster@pobox.com>
Wed, 17 Jul 2013 22:09:34 +0000 (15:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jul 2013 22:09:34 +0000 (15:09 -0700)
commit08578fa13eeec7079101f7ac52208aec83d54c62
tree65dad62dfa337859f2e6cf12a74e213ea70a9775
parent949226fe77beb1027bd5ac7be56fe002236d6cad
diff: factor out match_filter()

diffcore_apply_filter() checks if a filepair matches the filter
given with the "--diff-filter" option for each input filepairs with
a fairly complex expression in two places.

Create a helper function and call it.

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