Skip to content

Commit 688b87c

Browse files
zippy2gitster
authored andcommitted
completion: add show --color-moved[-ws]
The completion for diff command was added in fd0bc17 but missed the show command which also supports --color-moved[-ws]. This suffers from the very same problem [1] as the referenced commit: no comma-separated list completion for --color-moved-ws. [1]: scop/bash-completion#240 Signed-off-by: Michal Privoznik <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bd42bbe commit 688b87c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2907,6 +2907,14 @@ _git_show ()
29072907
__gitcomp "$__git_diff_submodule_formats" "" "${cur##--submodule=}"
29082908
return
29092909
;;
2910+
--color-moved=*)
2911+
__gitcomp "$__git_color_moved_opts" "" "${cur##--color-moved=}"
2912+
return
2913+
;;
2914+
--color-moved-ws=*)
2915+
__gitcomp "$__git_color_moved_ws_opts" "" "${cur##--color-moved-ws=}"
2916+
return
2917+
;;
29102918
--*)
29112919
__gitcomp "--pretty= --format= --abbrev-commit --no-abbrev-commit
29122920
--oneline --show-signature --patch

0 commit comments

Comments
 (0)