@matheusbsbs / matheus-bagliano / commits / 688b87c81b
Fork 0

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>

Michal Privoznik committed Jul 14, 2020 at 09:44 UTC 688b87c81b3a16d4b22594ef48052ee5f29a35b8
1 file changed +8
contrib/completion/git-completion.bash
+8
@@ -2907,6 +2907,14 @@ _git_show ()
2907 __gitcomp "$__git_diff_submodule_formats" "" "${cur##--submodule=}"
2908 return
2909 ;;
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 + ;;
2918 --*)
2919 __gitcomp "--pretty= --format= --abbrev-commit --no-abbrev-commit
2920 --oneline --show-signature --patch