Skip to content

Commit 5a69eaf

Browse files
mkiedrowiczgitster
authored andcommitted
contrib/completion: --line-number to git grep
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d2355d7 commit 5a69eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ _git_grep ()
14851485
__gitcomp "
14861486
--cached
14871487
--text --ignore-case --word-regexp --invert-match
1488-
--full-name
1488+
--full-name --line-number
14891489
--extended-regexp --basic-regexp --fixed-strings
14901490
--files-with-matches --name-only
14911491
--files-without-match

0 commit comments

Comments
 (0)