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

Re: [RFC/PATCH] grep --no-index: allow to grep without git exclusions

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Jul 21, 2011, 03:47 UTC
Message-ID
<CACsJy8CYJzfAWAB5yRsX6ug6uMOq27POk8EyC8TDmVTbOdoFaA@mail.gmail.com>
In-Reply-To
<7vzkk86577.fsf@alter.siamese.dyndns.org>
On Thu, Jul 21, 2011 at 3:57 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
>  - It might be useful to be able to "git grep" both tracked and untracked
>   (i.e. new files you may want to "git add") paths, but there is no good
>   way to do so. Introduce a new option --untracked-too (or more suitable
>   name --- I am bad at naming and not married to this one) to allow
>   this. This mode always takes "exclude" into account.

--ls-files ([c|d|o|i|s|u|k|m])+? This opens door for grepping only untracked files, for instant.

-- 
Duy
Previous: Junio C HamanoNext: Bert Wesarg
Message 3 of 7 in “grep --no-index: allow to grep without git exclusions”
  1. grep --no-index: allow to grep without git exclusionsBert Wesarg, Jul 20, 2011
  2. Junio C HamanoJul 20, 2011
  3. Nguyen Thai Ngoc DuyJul 21, 2011
  4. Bert WesargJul 21, 2011
  5. Bert WesargJul 21, 2011
  6. Junio C HamanoJul 21, 2011
  7. Bert WesargJul 21, 2011

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.