Merge branch 'wm/complete-git-short-opts' into jch

The command line completion script (in contrib/) learned to
complete "git -<TAB>" to give single-letter options like "-C".

* wm/complete-git-short-opts:
  completion: complete "git -<TAB>" with short options
This commit is contained in:
Junio C Hamano 2026-01-08 16:40:34 +09:00
commit 45d4b513c3

View File

@ -3899,7 +3899,7 @@ __git_main ()
;;
esac
case "$cur" in
--*)
-*)
__gitcomp "
--paginate
--no-pager
@ -3915,6 +3915,12 @@ __git_main ()
--namespace=
--no-replace-objects
--help
-C
-P
-c
-h
-p
-v
"
;;
*)