summaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2009-03-07 12:28:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-07 19:34:56 (GMT)
commitd7eb527d731e2a71eaa4597417d879a15588d9ee (patch)
treefd5eba8c7dab01a9d9209bbc6c4e99d048a51818 /grep.h
parent252d560d215581637fcddd7a0a18f89204ecc8d1 (diff)
downloadgit-d7eb527d731e2a71eaa4597417d879a15588d9ee.zip
git-d7eb527d731e2a71eaa4597417d879a15588d9ee.tar.gz
git-d7eb527d731e2a71eaa4597417d879a15588d9ee.tar.bz2
grep: remove grep_opt argument from match_expr_eval()
The only use of the struct grep_opt argument of match_expr_eval() is to pass the option word_regexp to match_one_pattern(). By adding a pattern flag for it we can reduce the number of function arguments of these two functions, as a cleanup and preparation for adding more in the next patch. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.h')
-rw-r--r--grep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/grep.h b/grep.h
index 5102ce3..d2a8674 100644
--- a/grep.h
+++ b/grep.h
@@ -31,6 +31,7 @@ struct grep_pat {
enum grep_header_field field;
regex_t regexp;
unsigned fixed:1;
+ unsigned word_regexp:1;
};
enum grep_expr_node {