diff options
author | Junio C Hamano <junkio@cox.net> | 2006-08-05 09:16:42 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-06 12:37:08 +0400 |
commit | f25b79397c9775df9eeef3d59d0cc3b1f913bc60 (patch) | |
tree | d3506d5985b0d529ac87e6b1d3cb69cb3451c7fd /git-clone.sh | |
parent | 0d958ac47a333b68b79cdc3ea206bb9a9b7486ad (diff) |
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 'git-clone.sh')
0 files changed, 0 insertions, 0 deletions