Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Ratterman <jratt0@gmail.com>2011-03-28 22:11:55 +0400
committerJunio C Hamano <gitster@pobox.com>2011-03-29 01:02:12 +0400
commit7d6cb10b84d9931aacf1914db192cbeaaa88443d (patch)
tree5b8907e0803db3457f3c9e781dc77574cf4205d4 /builtin
parent78bc46675353e4833a59e0f4dfa47d57a9c1a46b (diff)
grep: Add the option '--line-number'
This is a synonym for the existing '-n' option, matching GNU grep. Signed-off-by: Joe Ratterman <jratt0@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/grep.c b/builtin/grep.c
index 34f9ae0304..bb0f93208f 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -864,7 +864,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
OPT_BOOLEAN('F', "fixed-strings", &opt.fixed,
"interpret patterns as fixed strings"),
OPT_GROUP(""),
- OPT_BOOLEAN('n', NULL, &opt.linenum, "show line numbers"),
+ OPT_BOOLEAN('n', "line-number", &opt.linenum, "show line numbers"),
OPT_NEGBIT('h', NULL, &opt.pathname, "don't show filenames", 1),
OPT_BIT('H', NULL, &opt.pathname, "show filenames", 1),
OPT_NEGBIT(0, "full-name", &opt.relative,