From: Wiktor Mis Date: Wed, 26 Nov 2025 16:26:31 +0000 (+0000) Subject: completion: complete "git -" with short options X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87466656fa834a39e3c4f7d285c37d3b1cf0dbcd;p=thirdparty%2Fgit.git completion: complete "git -" with short options "git" itself has completion for its long options and subcommands, but not for its short options. Add support for them. Signed-off-by: Wiktor Mis Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 73abea31b4..1705ca3323 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -3898,7 +3898,7 @@ __git_main () ;; esac case "$cur" in - --*) + -*) __gitcomp " --paginate --no-pager @@ -3914,6 +3914,12 @@ __git_main () --namespace= --no-replace-objects --help + -C + -P + -c + -h + -p + -v " ;; *)