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