Skip to content

Commit

Permalink
contrib/completion: --line-number to git grep
Browse files Browse the repository at this point in the history
The "-n" option of "git grep" gained a synonym "--line-number" with
commit 7d6cb10 ("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>
  • Loading branch information
Michał Kiedrowicz authored and Junio C Hamano committed May 5, 2011
1 parent d2355d7 commit 5a69eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a69eaf

Please sign in to comment.