Code

contrib/completion: --line-number to git grep
authorMichał Kiedrowicz <michal.kiedrowicz@gmail.com>
Wed, 4 May 2011 22:00:18 +0000 (00:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 May 2011 15:34:13 +0000 (08:34 -0700)
The "-n" option of "git grep" gained a synonym "--line-number" with
commit 7d6cb10b ("grep: Add the option '--line-number'", 2011-03-28).

Teach bash-completion about it.

Signed-off-by: Michał Kiedrowicz <michal.kiedrowicz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 840ae38760a5de84b369b208a52cc579ce478378..3dc9cbe9f9d4a22db004047bf00165c4834a9b3b 100755 (executable)
@@ -1485,7 +1485,7 @@ _git_grep ()
                __gitcomp "
                        --cached
                        --text --ignore-case --word-regexp --invert-match
-                       --full-name
+                       --full-name --line-number
                        --extended-regexp --basic-regexp --fixed-strings
                        --files-with-matches --name-only
                        --files-without-match