Subject: [PATCH v2 0/2] Re: 'git grep needle rev' attempts to access 'rev:.../.gitattributes' in the worktree

From: Nguyễn Thái Ngọc Duy <[email-masked]>
Date: Wed, 10 Oct 2012 20:59:02 +0700

Round too. .gitattributes should be respected in all cases except blob
grepping. As Johannes pointed elsewhere in this thread, if "git
diff <rev1> <rev2>" 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