summaryrefslogtreecommitdiff
path: root/test-date.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2009-03-07 12:30:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-07 19:34:57 (GMT)
commit79212772ce127cc32a67d50eaaa7f1c102ce7d5d (patch)
tree076afff7009a549e52ada28fff24b2c4776b820e /test-date.c
parentd7eb527d731e2a71eaa4597417d879a15588d9ee (diff)
downloadgit-79212772ce127cc32a67d50eaaa7f1c102ce7d5d.zip
git-79212772ce127cc32a67d50eaaa7f1c102ce7d5d.tar.gz
git-79212772ce127cc32a67d50eaaa7f1c102ce7d5d.tar.bz2
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 'test-date.c')
0 files changed, 0 insertions, 0 deletions