aboutsummaryrefslogtreecommitdiff
path: root/git-clone.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-08-04 22:16:42 -0700
committerJunio C Hamano <junkio@cox.net>2006-08-06 01:37:08 -0700
commitf25b79397c9775df9eeef3d59d0cc3b1f913bc60 (patch)
treed3506d5985b0d529ac87e6b1d3cb69cb3451c7fd /git-clone.sh
parent0d958ac47a333b68b79cdc3ea206bb9a9b7486ad (diff)
downloadgit-f25b79397c9775df9eeef3d59d0cc3b1f913bc60.tar.gz
git-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 'git-clone.sh')
0 files changed, 0 insertions, 0 deletions