summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMichał Kiedrowicz <michal.kiedrowicz@gmail.com>2011-05-05 00:00:18 +0200
committerJunio C Hamano <gitster@pobox.com>2011-05-05 08:34:13 -0700
commit5a69eaf5541b8449ede74f148d395abd0acbf20f (patch)
tree9fe18c243bf0e7e4246c1735e2c8621ef93352be /contrib
parentd2355d76150316104b89443065e62a71342c36be (diff)
downloadgit-5a69eaf5541b8449ede74f148d395abd0acbf20f.tar.gz
contrib/completion: --line-number to git grep
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 840ae38760..3dc9cbe9f9 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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