Skip to content

Commit 98171a0

Browse files
lmarlowgitster
authored andcommitted
bash completion: Sync config variables with their man pages
Add 'normal' to config color options. Add 'mergeoptions' to branch config options. Add 'proxy' and 'mirror' to remote config options. Signed-off-by: Lee Marlow <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 025a192 commit 98171a0

File tree

1 file changed

+80
-7
lines changed

1 file changed

+80
-7
lines changed

contrib/completion/git-completion.bash

Lines changed: 80 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ _git_config ()
11551155
;;
11561156
color.*.*)
11571157
__gitcomp "
1158-
black red green yellow blue magenta cyan white
1158+
normal black red green yellow blue magenta cyan white
11591159
bold dim ul blink reverse
11601160
"
11611161
return
@@ -1179,7 +1179,7 @@ _git_config ()
11791179
branch.*.*)
11801180
local pfx="${cur%.*}."
11811181
cur="${cur##*.}"
1182-
__gitcomp "remote merge" "$pfx" "$cur"
1182+
__gitcomp "remote merge mergeoptions" "$pfx" "$cur"
11831183
return
11841184
;;
11851185
branch.*)
@@ -1192,7 +1192,7 @@ _git_config ()
11921192
local pfx="${cur%.*}."
11931193
cur="${cur##*.}"
11941194
__gitcomp "
1195-
url fetch push skipDefaultUpdate
1195+
url proxy fetch push mirror skipDefaultUpdate
11961196
receivepack uploadpack tagopt
11971197
" "$pfx" "$cur"
11981198
return
@@ -1206,6 +1206,8 @@ _git_config ()
12061206
esac
12071207
__gitcomp "
12081208
apply.whitespace
1209+
branch.autosetupmerge
1210+
branch.autosetuprebase
12091211
clean.requireForce
12101212
color.branch
12111213
color.branch.current
@@ -1220,74 +1222,145 @@ _git_config ()
12201222
color.diff.old
12211223
color.diff.plain
12221224
color.diff.whitespace
1225+
color.interactive
1226+
color.interactive.header
1227+
color.interactive.help
1228+
color.interactive.prompt
12231229
color.pager
12241230
color.status
12251231
color.status.added
12261232
color.status.changed
12271233
color.status.header
1234+
color.status.nobranch
12281235
color.status.untracked
1236+
color.status.updated
1237+
color.ui
1238+
commit.template
1239+
core.autocrlf
1240+
core.bare
12291241
core.compression
1242+
core.deltaBaseCacheLimit
1243+
core.editor
1244+
core.excludesfile
12301245
core.fileMode
1246+
core.fsyncobjectfiles
12311247
core.gitProxy
1248+
core.ignoreCygwinFSTricks
12321249
core.ignoreStat
12331250
core.logAllRefUpdates
12341251
core.loosecompression
12351252
core.packedGitLimit
12361253
core.packedGitWindowSize
1254+
core.pager
12371255
core.preferSymlinkRefs
1256+
core.preloadindex
1257+
core.quotepath
12381258
core.repositoryFormatVersion
1259+
core.safecrlf
12391260
core.sharedRepository
1261+
core.symlinks
1262+
core.trustctime
12401263
core.warnAmbiguousRefs
1264+
core.whitespace
1265+
core.worktree
1266+
diff.autorefreshindex
1267+
diff.external
1268+
diff.mnemonicprefix
12411269
diff.renameLimit
1270+
diff.renameLimit.
12421271
diff.renames
12431272
fetch.unpackLimit
12441273
format.headers
1245-
format.subjectprefix
1274+
format.numbered
1275+
format.pretty
1276+
format.suffix
1277+
gc.aggressiveWindow
1278+
gc.auto
1279+
gc.autopacklimit
12461280
gc.packrefs
1281+
gc.pruneexpire
12471282
gc.reflogexpire
12481283
gc.reflogexpireunreachable
12491284
gc.rerereresolved
12501285
gc.rerereunresolved
12511286
gitcvs.allbinary
1287+
gitcvs.dbTableNamePrefix
12521288
gitcvs.dbdriver
12531289
gitcvs.dbname
12541290
gitcvs.dbpass
1255-
gitcvs.dbtablenameprefix
12561291
gitcvs.dbuser
12571292
gitcvs.enabled
12581293
gitcvs.logfile
1294+
gitcvs.usecrlfattr
1295+
gui.blamehistoryctx
1296+
gui.commitmsgwidth
1297+
gui.copyblamethreshold
1298+
gui.diffcontext
1299+
gui.encoding
1300+
gui.fastcopyblame
1301+
gui.matchtrackingbranch
1302+
gui.newbranchtemplate
1303+
gui.pruneduringfetch
1304+
gui.spellingdictionary
1305+
gui.trustmtime
1306+
help.autocorrect
1307+
help.browser
1308+
help.format
12591309
http.lowSpeedLimit
12601310
http.lowSpeedTime
12611311
http.maxRequests
12621312
http.noEPSV
1313+
http.proxy
12631314
http.sslCAInfo
12641315
http.sslCAPath
12651316
http.sslCert
12661317
http.sslKey
12671318
http.sslVerify
12681319
i18n.commitEncoding
12691320
i18n.logOutputEncoding
1321+
instaweb.browser
1322+
instaweb.httpd
1323+
instaweb.local
1324+
instaweb.modulepath
1325+
instaweb.port
1326+
log.date
12701327
log.showroot
1271-
merge.summary
1328+
man.viewer
1329+
merge.conflictstyle
1330+
merge.log
1331+
merge.renameLimit
1332+
merge.stat
12721333
merge.tool
12731334
merge.verbosity
1335+
mergetool.keepBackup
12741336
pack.compression
12751337
pack.deltaCacheLimit
12761338
pack.deltaCacheSize
12771339
pack.depth
1340+
pack.indexVersion
1341+
pack.packSizeLimit
1342+
pack.threads
12781343
pack.window
12791344
pack.windowMemory
12801345
pull.octopus
12811346
pull.twohead
1347+
receive.denyCurrentBranch
1348+
receive.denyDeletes
12821349
receive.denyNonFastForwards
1350+
receive.fsckObjects
12831351
receive.unpackLimit
1284-
repack.useDeltaBaseOffset
1352+
repack.usedeltabaseoffset
1353+
rerere.autoupdate
1354+
rerere.enabled
12851355
showbranch.default
1356+
status.relativePaths
1357+
status.showUntrackedFiles
12861358
tar.umask
12871359
transfer.unpackLimit
12881360
user.email
12891361
user.name
12901362
user.signingkey
1363+
web.browser
12911364
branch. remote.
12921365
"
12931366
}

0 commit comments

Comments
 (0)