{"thread":{"id":"26894","subject":"[PATCH] grep: Add the option '--line-number'","startedAt":"2011-03-28T18:11:55Z","lastAt":"2011-03-28T21:02:24Z","messageCount":2,"participants":["Joe Ratterman","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"164477","messageId":"1301335915-5782-1-git-send-email-jratt0@gmail.com","threadId":"26894","inReplyTo":null,"subject":"[PATCH] grep: Add the option '--line-number'","fromName":"Joe Ratterman","fromEmail":"jratt0@gmail.com","sentAt":"2011-03-28T18:11:55Z","receivedAt":"2011-03-28T18:11:55Z","isPatch":true,"sender":{"key":"jratt0@gmail.com","avatar":"https://avatars.githubusercontent.com/u/66082737?v=4"},"body":"This is a synonym for the existing '-n' option, matching GNU grep.\n\nSigned-off-by: Joe Ratterman <jratt0@gmail.com>\n---\n Documentation/git-grep.txt |    1 +\n builtin/grep.c             |    2 +-\n 2 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt\nindex 71668e0..c446590 100644\n--- a/Documentation/git-grep.txt\n+++ b/Documentation/git-grep.txt\n@@ -102,6 +102,7 @@ OPTIONS\n \tas a regex).\n \n -n::\n+--line-number::\n \tPrefix the line number to matching lines.\n \n -l::\ndiff --git a/builtin/grep.c b/builtin/grep.c\nindex 1d35f76..c51e9f1 100644\n--- a/builtin/grep.c\n+++ b/builtin/grep.c\n@@ -874,7 +874,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)\n \t\tOPT_BOOLEAN('F', \"fixed-strings\", &opt.fixed,\n \t\t\t\"interpret patterns as fixed strings\"),\n \t\tOPT_GROUP(\"\"),\n-\t\tOPT_BOOLEAN('n', NULL, &opt.linenum, \"show line numbers\"),\n+\t\tOPT_BOOLEAN('n', \"line-number\", &opt.linenum, \"show line numbers\"),\n \t\tOPT_NEGBIT('h', NULL, &opt.pathname, \"don't show filenames\", 1),\n \t\tOPT_BIT('H', NULL, &opt.pathname, \"show filenames\", 1),\n \t\tOPT_NEGBIT(0, \"full-name\", &opt.relative,\n-- \n1.7.4.1.4.g0ea33\n"},{"id":"164496","messageId":"7voc4vvtzz.fsf@alter.siamese.dyndns.org","threadId":"26894","inReplyTo":"1301335915-5782-1-git-send-email-jratt0@gmail.com","subject":"Re: [PATCH] grep: Add the option '--line-number'","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-03-28T21:02:24Z","receivedAt":"2011-03-28T21:02:24Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks, will queue.\n"}]}