aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-grep.txt
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-02-20 23:28:07 -0500
committerJunio C Hamano <gitster@pobox.com>2008-02-20 20:36:20 -0800
commit2cd5dfd240ecb63c77bcb2532664984e3b69ae47 (patch)
tree5d6736622f383d4c2abadc22daa3df199bcc5824 /Documentation/git-grep.txt
parent14a5c7c19351a7db56803c9086b133fe131f55f6 (diff)
downloadgit-2cd5dfd240ecb63c77bcb2532664984e3b69ae47.tar.gz
Teach git-grep --name-only as synonym for -l
I expected git grep --name-only to give me only the file names, much as git diff --name-only only generates filenames. Alas the option is -l, which matches common external greps but doesn't match other parts of the git UI. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-grep.txt')
-rw-r--r--Documentation/git-grep.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index f3cb24f252..71a73354f8 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -75,9 +75,11 @@ OPTIONS
-n::
Prefix the line number to matching lines.
--l | --files-with-matches | -L | --files-without-match::
+-l | --files-with-matches | --name-only | -L | --files-without-match::
Instead of showing every matched line, show only the
names of files that contain (or do not contain) matches.
+ For better compatability with git-diff, --name-only is a
+ synonym for --files-with-matches.
-c | --count::
Instead of showing every matched line, show the number of