summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar René Scharfe <rene.scharfe@lsrfire.ath.cx>2009-03-07 13:30:27 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-03-07 11:34:57 -0800
commit79212772ce127cc32a67d50eaaa7f1c102ce7d5d (patch)
tree076afff7009a549e52ada28fff24b2c4776b820e /Documentation
parentgrep: remove grep_opt argument from match_expr_eval() (diff)
downloadtgif-79212772ce127cc32a67d50eaaa7f1c102ce7d5d.tar.xz
grep: add pmatch and eflags arguments to match_one_pattern()
Push pmatch and eflags to the callers of match_one_pattern(), which allows them to specify regex execution flags and to get the location of a match. Since we only use the first element of the matches array and aren't interested in submatches, no provision is made for callers to provide a larger array. eflags are ignored for fixed patterns, but that's OK, since they only have a meaning in connection with regular expressions containing ^ or $. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions