aboutsummaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-11-18 19:32:30 -0800
committerJunio C Hamano <gitster@pobox.com>2012-11-18 19:32:30 -0800
commitdca5ed5f5b2646186ce177bb41974035f8fefd52 (patch)
treed1289a994fbcc01b35c7cf058878fb92c110831f /grep.h
parent4607a8ce68f4e407bcaaf04819713b40dffce385 (diff)
parent55c61688ea1e41f4a8c26f957bf1bc43cd39ed97 (diff)
downloadgit-dca5ed5f5b2646186ce177bb41974035f8fefd52.tar.gz
git-dca5ed5f5b2646186ce177bb41974035f8fefd52.tar.xz
Merge branch 'nd/grep-true-path' into maint
"git grep -e pattern <tree>" asked the attribute system to read "<tree>:.gitattributes" file in the working tree, which was nonsense. * nd/grep-true-path: grep: stop looking at random places for .gitattributes
Diffstat (limited to 'grep.h')
-rw-r--r--grep.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/grep.h b/grep.h
index 701c78459..8fc854f40 100644
--- a/grep.h
+++ b/grep.h
@@ -164,11 +164,13 @@ struct grep_source {
char *buf;
unsigned long size;
+ char *path; /* for attribute lookups */
struct userdiff_driver *driver;
};
void grep_source_init(struct grep_source *gs, enum grep_source_type type,
- const char *name, const void *identifier);
+ const char *name, const char *path,
+ const void *identifier);
void grep_source_clear_data(struct grep_source *gs);
void grep_source_clear(struct grep_source *gs);
void grep_source_load_driver(struct grep_source *gs);