author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 21 Feb 2008 04:28:07 +0000 (23:28 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 21 Feb 2008 04:36:20 +0000 (20:36 -0800) | ||
commit | 2cd5dfd240ecb63c77bcb2532664984e3b69ae47 | |
tree | 5d6736622f383d4c2abadc22daa3df199bcc5824 | tree | snapshot |
parent | 14a5c7c19351a7db56803c9086b133fe131f55f6 | commit | diff |
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>
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>
Documentation/git-grep.txt | diff | blob | history | |
builtin-grep.c | diff | blob | history |