author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Sat, 27 Dec 2008 08:21:03 +0000 (15:21 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 27 Dec 2008 22:30:46 +0000 (14:30 -0800) | ||
commit | 57d43466fbb4ffb4106b97593a96d714137dde2a | |
tree | 48db4a289f4c442803a5f7ea43f6e1fdc0398548 | tree | snapshot |
parent | e70b9a8bd2e25ced75cff2a2c26aed3f983425f8 | commit | diff |
grep: grep cache entries if they are "assume unchanged"
"Assume unchanged" bit means "please pretend that I have never touched
this file", so if user removes the file, we should not care.
This patch teaches "git grep" to use cache version in such
situations. External grep case has not been fixed yet. But given that
on the platform that CE_VALID bit may be used like Windows, external
grep is not available anyway, I would wait for people to raise their
hands before touching it.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
"Assume unchanged" bit means "please pretend that I have never touched
this file", so if user removes the file, we should not care.
This patch teaches "git grep" to use cache version in such
situations. External grep case has not been fixed yet. But given that
on the platform that CE_VALID bit may be used like Windows, external
grep is not available anyway, I would wait for people to raise their
hands before touching it.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-grep.c | diff | blob | history | |
t/t7002-grep.sh | diff | blob | history |