git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG/PATCH] git grep shows the same hit repeatedly for unmerged paths

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 6, 2007, 08:59 UTC
Message-ID
<7vtzmwfbb4.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<4757B1B9.2050606@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
> No, it doesn't. Neither before nor after this change. (I actually thought it
>  would without this change, but I obviously was wrong.)
Sorry, my mistake.  "git grep" traditionally skips unmerged paths.

It might make sense to grep in stage #2 if a path is unmerged, just like we use stage #2 in diff-files.

Previous: Johannes Sixt
Message 5 of 5 in “git grep shows the same hit repeatedly for unmerged paths”
  1. git grep shows the same hit repeatedly for unmerged pathsJunio C Hamano, Dec 6, 2007
  2. Johannes SixtDec 6, 2007
  3. Junio C HamanoDec 6, 2007
  4. Johannes SixtDec 6, 2007
  5. Junio C HamanoDec 6, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.