Re: [PATCH 4/4] grep docs: document --no-index option
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