diff options
author | Michał Kiedrowicz <michal.kiedrowicz@gmail.com> | 2011-05-05 00:00:19 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-05 08:38:12 -0700 |
commit | 97e777842260a5339bb5272a35ebeaeaae554937 (patch) | |
tree | 22961e850ded32de96f2dfe1fd108cef6c82e15d /Makefile | |
parent | contrib/completion: --line-number to git grep (diff) | |
download | tgif-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 'Makefile')
0 files changed, 0 insertions, 0 deletions