summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2020-07-14 07:44:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-07-15 20:51:09 (GMT)
commit688b87c81b3a16d4b22594ef48052ee5f29a35b8 (patch)
tree7c14bcd050c559b592d3572d4c2d2a062beae7ff /contrib
parentbd42bbe1a46c0fe486fc33e82969275e27e4dc19 (diff)
downloadgit-688b87c81b3a16d4b22594ef48052ee5f29a35b8.zip
git-688b87c81b3a16d4b22594ef48052ee5f29a35b8.tar.gz
git-688b87c81b3a16d4b22594ef48052ee5f29a35b8.tar.bz2
completion: add show --color-moved[-ws]
The completion for diff command was added in fd0bc175576 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]: https://github.com/scop/bash-completion/issues/240 Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/git-completion.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index ee468ea..0fdb5da 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2907,6 +2907,14 @@ _git_show ()
__gitcomp "$__git_diff_submodule_formats" "" "${cur##--submodule=}"
return
;;
+ --color-moved=*)
+ __gitcomp "$__git_color_moved_opts" "" "${cur##--color-moved=}"
+ return
+ ;;
+ --color-moved-ws=*)
+ __gitcomp "$__git_color_moved_ws_opts" "" "${cur##--color-moved-ws=}"
+ return
+ ;;
--*)
__gitcomp "--pretty= --format= --abbrev-commit --no-abbrev-commit
--oneline --show-signature --patch