Skip to content

Commit 0532d2f

Browse files
authored
Add completion for short options
Git provided completion for long options but not the short ones Signed-off-by: Wiktorro <[email protected]>
1 parent 0a65ee6 commit 0532d2f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3916,6 +3916,16 @@ __git_main ()
39163916
--help
39173917
"
39183918
;;
3919+
-*)
3920+
__gitcomp "
3921+
-C
3922+
-P
3923+
-c
3924+
-h
3925+
-p
3926+
-v
3927+
"
3928+
;;
39193929
*)
39203930
if test -n "${GIT_TESTING_PORCELAIN_COMMAND_LIST-}"
39213931
then

0 commit comments

Comments
 (0)