summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-08-05 05:16:42 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-06 08:37:08 (GMT)
commitf25b79397c9775df9eeef3d59d0cc3b1f913bc60 (patch)
treed3506d5985b0d529ac87e6b1d3cb69cb3451c7fd /read-cache.c
parent0d958ac47a333b68b79cdc3ea206bb9a9b7486ad (diff)
downloadgit-f25b79397c9775df9eeef3d59d0cc3b1f913bc60.zip
git-f25b79397c9775df9eeef3d59d0cc3b1f913bc60.tar.gz
git-f25b79397c9775df9eeef3d59d0cc3b1f913bc60.tar.bz2
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 'read-cache.c')
0 files changed, 0 insertions, 0 deletions