From 0532d2f0abf08c7778c345f2fbe142d48abf5acb Mon Sep 17 00:00:00 2001 From: Wiktorro <48845694+Wiktorro@users.noreply.github.com> Date: Thu, 13 Nov 2025 07:49:46 +0100 Subject: [PATCH] Add completion for short options Git provided completion for long options but not the short ones Signed-off-by: Wiktorro <48845694+Wiktorro@users.noreply.github.com> --- contrib/completion/git-completion.bash | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 73abea31b428f3..3f1d6c0955e4c2 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -3916,6 +3916,16 @@ __git_main () --help " ;; + -*) + __gitcomp " + -C + -P + -c + -h + -p + -v + " + ;; *) if test -n "${GIT_TESTING_PORCELAIN_COMMAND_LIST-}" then