Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
am: avoid diff_opt_parse()
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 8b770cd396737172342c4de4f3e36d25f75934d9..11f26285c37a61da1d636713c4e8cdbe095c03d2 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-4692,6
+4692,12
@@
static unsigned filter_bit_tst(char status, const struct diff_options *opt)
return opt->filter & filter_bit[(int) status];
}
+unsigned diff_filter_bit(char status)
+{
+ prepare_filter_bits();
+ return filter_bit[(int) status];
+}
+
static int diff_opt_diff_filter(const struct option *option,
const char *optarg, int unset)
{