Skip to content

Commit 0aa62fd

Browse files
bebarinogitster
authored andcommitted
completion: add {gui,diff,merge}tool, man, and pager config variables
Signed-off-by: Stephen Boyd <[email protected]> Acked-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 226b343 commit 0aa62fd

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,39 @@ _git_config ()
13761376
__gitcomp "$(__git_heads)" "$pfx" "$cur" "."
13771377
return
13781378
;;
1379+
guitool.*.*)
1380+
local pfx="${cur%.*}."
1381+
cur="${cur##*.}"
1382+
__gitcomp "
1383+
argprompt cmd confirm needsfile noconsole norescan
1384+
prompt revprompt revunmerged title
1385+
" "$pfx" "$cur"
1386+
return
1387+
;;
1388+
difftool.*.*)
1389+
local pfx="${cur%.*}."
1390+
cur="${cur##*.}"
1391+
__gitcomp "cmd path" "$pfx" "$cur"
1392+
return
1393+
;;
1394+
man.*.*)
1395+
local pfx="${cur%.*}."
1396+
cur="${cur##*.}"
1397+
__gitcomp "cmd path" "$pfx" "$cur"
1398+
return
1399+
;;
1400+
mergetool.*.*)
1401+
local pfx="${cur%.*}."
1402+
cur="${cur##*.}"
1403+
__gitcomp "cmd path trustExitCode" "$pfx" "$cur"
1404+
return
1405+
;;
1406+
pager.*)
1407+
local pfx="${cur%.*}."
1408+
cur="${cur#*.}"
1409+
__gitcomp "$(__git_all_commands)" "$pfx" "$cur"
1410+
return
1411+
;;
13791412
remote.*.*)
13801413
local pfx="${cur%.*}."
13811414
cur="${cur##*.}"
@@ -1391,6 +1424,12 @@ _git_config ()
13911424
__gitcomp "$(__git_remotes)" "$pfx" "$cur" "."
13921425
return
13931426
;;
1427+
url.*.*)
1428+
local pfx="${cur%.*}."
1429+
cur="${cur##*.}"
1430+
__gitcomp "insteadof" "$pfx" "$cur"
1431+
return
1432+
;;
13941433
esac
13951434
__gitcomp "
13961435
alias.
@@ -1465,6 +1504,7 @@ _git_config ()
14651504
diff.suppressBlankEmpty
14661505
diff.tool
14671506
diff.wordRegex
1507+
difftool.
14681508
difftool.prompt
14691509
fetch.unpackLimit
14701510
format.attach
@@ -1495,6 +1535,7 @@ _git_config ()
14951535
gitcvs.enabled
14961536
gitcvs.logfile
14971537
gitcvs.usecrlfattr
1538+
guitool.
14981539
gui.blamehistoryctx
14991540
gui.commitmsgwidth
15001541
gui.copyblamethreshold
@@ -1538,13 +1579,15 @@ _git_config ()
15381579
log.date
15391580
log.showroot
15401581
mailmap.file
1582+
man.
15411583
man.viewer
15421584
merge.conflictstyle
15431585
merge.log
15441586
merge.renameLimit
15451587
merge.stat
15461588
merge.tool
15471589
merge.verbosity
1590+
mergetool.
15481591
mergetool.keepBackup
15491592
mergetool.prompt
15501593
pack.compression
@@ -1556,6 +1599,7 @@ _git_config ()
15561599
pack.threads
15571600
pack.window
15581601
pack.windowMemory
1602+
pager.
15591603
pull.octopus
15601604
pull.twohead
15611605
push.default
@@ -1593,6 +1637,7 @@ _git_config ()
15931637
status.showUntrackedFiles
15941638
tar.umask
15951639
transfer.unpackLimit
1640+
url.
15961641
user.email
15971642
user.name
15981643
user.signingkey

0 commit comments

Comments
 (0)