summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Michał Kiedrowicz <michal.kiedrowicz@gmail.com>2011-05-05 00:00:19 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-05-05 08:38:12 -0700
commit97e777842260a5339bb5272a35ebeaeaae554937 (patch)
tree22961e850ded32de96f2dfe1fd108cef6c82e15d /t
parentcontrib/completion: --line-number to git grep (diff)
downloadtgif-97e777842260a5339bb5272a35ebeaeaae554937.tar.xz
grep: Put calls to fixmatch() and regmatch() into patmatch()
Both match_one_pattern() and look_ahead() use fixmatch() and regmatch() in the same way. They really want to match a pattern againt a string, but now they need to know if the pattern is fixed or regexp. This change cleans this up by introducing patmatch() (from "pattern match") and also simplifies inserting other ways of matching a string. Signed-off-by: Michał Kiedrowicz <michal.kiedrowicz@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions