From: Nguyễn Thái Ngọc Duy Date: Wed, 10 Oct 2012 13:59:02 GMT Subject: [PATCH v2 0/2] Re: 'git grep needle rev' attempts to access 'rev:.../.gitattributes' in the worktree Message-ID: <1349877544-17648-1-git-send-email-pclouds@gmail.com> In-Reply-To: <1349868894-3579-1-git-send-email-pclouds@gmail.com> Round too. .gitattributes should be respected in all cases except blob grepping. As Johannes pointed elsewhere in this thread, if "git diff " looks up worktree's .gitattributes (and none in rev1/rev2), there's no reason "git grep" should behave differently. Nguyễn Thái Ngọc Duy (2): quote: let caller reset buffer for quote_path_relative() grep: stop looking at random places for .gitattributes builtin/clean.c | 2 ++ builtin/grep.c | 24 +++++++++++++----------- builtin/ls-files.c | 1 + grep.c | 11 ++++++++--- grep.h | 4 +++- quote.c | 1 - t/t7008-grep-binary.sh | 22 ++++++++++++++++++++++ wt-status.c | 1 + 8 files changed, 50 insertions(+), 16 deletions(-) -- 1.7.12.1.406.g6ab07c4