Code

grep: accept relative paths outside current working directory
authorClemens Buchacher <drizzd@aon.at>
Sat, 5 Sep 2009 12:31:17 +0000 (14:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Sep 2009 22:03:04 +0000 (15:03 -0700)
commit493b7a08d80535def6756b281873e4e0937ba6c2
tree43d63705e1e0e3951e7c3acc61a89e2c96bcf518
parent929e37d3dfef13895ef6e4b54c7d45962b234461
grep: accept relative paths outside current working directory

"git grep" would barf at relative paths pointing outside the current
working directory (or subdirectories thereof). Use quote_path_relative(),
which can handle such cases just fine.

[jc: added tests.]

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-grep.c
grep.h
t/t7002-grep.sh