Update bash completion for git-config options
A few new configuration options grew out of the woodwork during the 1.5.2 series. Most of these are pretty easy to support a completion of, so we do so. I wanted to also add completion support for the <driver> part of merge.<driver>.name but to do that we have to look at all of the .gitattributes files and guess what the unique set of <driver> strings would be. Since this appears to be non-trivial I'm punting on it at this time. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
May 24, 2007 at 02:07 UTC
12977705b3da7eb63cdfd890f838b971e8d81485
1 file changed
+12
-2
contrib/completion/git-completion.bash
+12
-2
@@ -764,9 +764,11 @@ _git_config ()
764
case "$cur" in
765
--*)
766
__gitcomp "
767
- --global --list --replace-all
767
+ --global --system
768
+ --list --replace-all
769
--get --get-all --get-regexp
770
--add --unset --unset-all
771
+ --remove-section --rename-section
772
"
773
return
774
;;
@@ -785,7 +787,10 @@ _git_config ()
787
remote.*.*)
788
local pfx="${cur%.*}."
789
cur="${cur##*.}"
788
- __gitcomp "url fetch push" "$pfx" "$cur"
790
+ __gitcomp "
791
+ url fetch push skipDefaultUpdate
792
+ receivepack uploadpack tagopt
793
+ " "$pfx" "$cur"
794
return
795
;;
796
remote.*)
@@ -835,6 +840,9 @@ _git_config ()
840
format.headers
841
gitcvs.enabled
842
gitcvs.logfile
843
+ gitcvs.allbinary
844
+ gitcvs.dbname gitcvs.dbdriver gitcvs.dbuser gitcvs.dvpass
845
+ gc.packrefs
846
gc.reflogexpire
847
gc.reflogexpireunreachable
848
gc.rerereresolved
@@ -851,9 +859,11 @@ _git_config ()
859
i18n.commitEncoding
860
i18n.logOutputEncoding
861
log.showroot
862
+ merge.tool
863
merge.summary
864
merge.verbosity
865
pack.window
866
+ pack.depth
867
pull.octopus
868
pull.twohead
869
repack.useDeltaBaseOffset