From 493b7a08d80535def6756b281873e4e0937ba6c2 Mon Sep 17 00:00:00 2001 From: Clemens Buchacher Date: Sat, 5 Sep 2009 14:31:17 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- grep.h | 1 + 1 file changed, 1 insertion(+) (limited to 'grep.h') diff --git a/grep.h b/grep.h index a67005de62..5b767c931c 100644 --- a/grep.h +++ b/grep.h @@ -59,6 +59,7 @@ struct grep_opt { struct grep_pat *pattern_list; struct grep_pat **pattern_tail; struct grep_expr *pattern_expression; + const char *prefix; int prefix_length; regex_t regexp; unsigned linenum:1; -- cgit v1.2.3