diff options
author | Junio C Hamano <junkio@cox.net> | 2006-08-04 22:16:42 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-06 01:37:08 -0700 |
commit | f25b79397c9775df9eeef3d59d0cc3b1f913bc60 (patch) | |
tree | d3506d5985b0d529ac87e6b1d3cb69cb3451c7fd /tree-walk.h | |
parent | Makefile: Cygwin does not seem to need NO_STRLCPY (diff) | |
download | tgif-f25b79397c9775df9eeef3d59d0cc3b1f913bc60.tar.xz |
Fix "grep -w"
We used to find the first match of the pattern and then if the
match is not for the entire word, declared that the whole line
does not match.
But that is wrong. The command "git grep -w -e mmap" should
find that a line "foo_mmap bar mmap baz" matches, by tring the
second instance of pattern "mmap" on the same line.
Problems an earlier round of "fix" had were pointed out by Morten
Welinder, which have been incorporated in the t7002 tests.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tree-walk.h')
0 files changed, 0 insertions, 0 deletions