{"thread":{"id":"15532","subject":"Re: [PATCH 10/16] grep: skip files that have not been checked out","startedAt":"2008-09-15T07:48:45Z","lastAt":"2008-09-15T07:48:45Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":16},"messages":[{"id":"90721","messageId":"200809150948.46139.jnareb@gmail.com","threadId":"15532","inReplyTo":"48cdd6cb7415e_3c273fa85e999d2827466@app01.zenbe.com.tmail","subject":"Re: [PATCH 10/16] grep: skip files that have not been checked out","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-09-15T07:48:45Z","receivedAt":"2008-09-15T07:48:45Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Duy Nguyen wrote:\n> On 09/15/2008 \"Jakub Narebski\" <jnareb@gmail.com> wrote:\n> >Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:\n> > \n> > > Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>\n> > > ---\n> > >  builtin-grep.c |    7 ++++++-\n> > >  1 files changed, 6 insertions(+), 1 deletions(-)\n> > \n> > No changes to Documentation/git-grep.txt?\n> \n> No, \"git grep\" should only grep files in working directories. In\n> narrow checkout mode, some files may be missing but current \"git grep\"\n> does not know about that, hence this fix.  \n\nPerhaps that should be stated explicitly, that git-grep searches only\n[intentionally] checked-out files when searching working directory,\nand only files without no-checkout bit set when searching index with\n\"git grep --cached\".\n\nP.S. I think it should be [--cached|<tree>...] in git-grep synopsis,\nand not [--cached] ... [<tree>...], but that is unrelated thing, and\ndoesn't matter to you.\n-- \nJakub Narebski\nPoland\n"}]}