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

Re: [PATCH 4/4] grep docs: document --no-index option

From
Mark Lodato <lodatom@gmail.com>
Date
Feb 26, 2010, 22:07 UTC
Message-ID
<ca433831002261407l4d708283m5129c582a55fb1b6@mail.gmail.com>
In-Reply-To
<7vocjceg0y.fsf@alter.siamese.dyndns.org>
On Fri, Feb 26, 2010 at 12:13 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
> Mark Lodato <lodatom@gmail.com> writes:
>
>> +--no-index::
>> +     Search all files in the working tree, not just those tracked by git.
>
> This one is meant to be usable outside git directory, and saying "the
> working tree" is misleading.  The "work tree" is a technical term that
> specifically means the files in the directory hierarchy on the filesystem
> that correspond to the index entries that represent them.
>
> It probably should say "the current directory" or something here.
Here's a squashable commit to do just that.
---
 Documentation/git-grep.txt |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index 86d7401..3e6eaf7 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -37,7 +37,8 @@ OPTIONS
        blobs registered in the index file.

 --no-index::
-       Search all files in the working tree, not just those tracked by git.
+       Search all files in the current directory, not just those tracked
+       by git.

 -a::
 --text::
-- 
1.7.0
Previous: Junio C Hamano
Message 7 of 7 in “git-grep documentation updates”
  1. 0/4 git-grep documentation updatesMark Lodato, Feb 26, 2010
  2. 1/4 grep docs: pluralize "Example" sectionMark Lodato, Feb 26, 2010
  3. 2/4 grep docs: use AsciiDoc literals consistentlyMark Lodato, Feb 26, 2010
  4. 3/4 grep docs: --cached and <tree>... are incompatibleMark Lodato, Feb 26, 2010
  5. 4/4 grep docs: document --no-index optionMark Lodato, Feb 26, 2010
  6. Junio C HamanoFeb 26, 2010
  7. Mark LodatoFeb 26, 2010

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.