From: Johannes Sixt Date: Sun, 26 Nov 2006 14:53:58 GMT Subject: git-grep misses an instance of a string (after conflict) Message-ID: I've roughly had the following sequence of operations on a particular file in my project: 1. git-cherry-pick a commit, which resulted in a conflict in in that file 2. edit the file to insert a particular string (which wasn't there before) 3. then: $ git-grep getSibling -- kdbg/exprwnd.h # this file had a conflict $ grep getSibling -- kdbg/exprwnd.h { return static_cast(getSibling()); } $ git-update-index kdbg/exprwnd.h $ git-grep getSibling -- kdbg/exprwnd.h kdbg/exprwnd.h: { return static_cast(getSibling()); } As you can see, the first git-grep doesn't find the string, but after the update-index, it does find it. This is unexpected behavior, in particular since the manual page talks about git-grep to search the working tree. I understand that the conflict may have influenced the behavior, but the manual page is not in line with the behavior. Am I missing something? -- Hannes