Merge branch 'nd/grep-true-path'
"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
This commit is contained in:
4
grep.h
4
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);
|
||||
|
Reference in New Issue
Block a user