提交 0aa62fd0 编写于 作者: S Stephen Boyd 提交者: Junio C Hamano

completion: add {gui,diff,merge}tool, man, and pager config variables

Signed-off-by: NStephen Boyd <bebarino@gmail.com>
Acked-by: NShawn O. Pearce <spearce@spearce.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 226b343c
...@@ -1376,6 +1376,39 @@ _git_config () ...@@ -1376,6 +1376,39 @@ _git_config ()
__gitcomp "$(__git_heads)" "$pfx" "$cur" "." __gitcomp "$(__git_heads)" "$pfx" "$cur" "."
return return
;; ;;
guitool.*.*)
local pfx="${cur%.*}."
cur="${cur##*.}"
__gitcomp "
argprompt cmd confirm needsfile noconsole norescan
prompt revprompt revunmerged title
" "$pfx" "$cur"
return
;;
difftool.*.*)
local pfx="${cur%.*}."
cur="${cur##*.}"
__gitcomp "cmd path" "$pfx" "$cur"
return
;;
man.*.*)
local pfx="${cur%.*}."
cur="${cur##*.}"
__gitcomp "cmd path" "$pfx" "$cur"
return
;;
mergetool.*.*)
local pfx="${cur%.*}."
cur="${cur##*.}"
__gitcomp "cmd path trustExitCode" "$pfx" "$cur"
return
;;
pager.*)
local pfx="${cur%.*}."
cur="${cur#*.}"
__gitcomp "$(__git_all_commands)" "$pfx" "$cur"
return
;;
remote.*.*) remote.*.*)
local pfx="${cur%.*}." local pfx="${cur%.*}."
cur="${cur##*.}" cur="${cur##*.}"
...@@ -1391,6 +1424,12 @@ _git_config () ...@@ -1391,6 +1424,12 @@ _git_config ()
__gitcomp "$(__git_remotes)" "$pfx" "$cur" "." __gitcomp "$(__git_remotes)" "$pfx" "$cur" "."
return return
;; ;;
url.*.*)
local pfx="${cur%.*}."
cur="${cur##*.}"
__gitcomp "insteadof" "$pfx" "$cur"
return
;;
esac esac
__gitcomp " __gitcomp "
alias. alias.
...@@ -1465,6 +1504,7 @@ _git_config () ...@@ -1465,6 +1504,7 @@ _git_config ()
diff.suppressBlankEmpty diff.suppressBlankEmpty
diff.tool diff.tool
diff.wordRegex diff.wordRegex
difftool.
difftool.prompt difftool.prompt
fetch.unpackLimit fetch.unpackLimit
format.attach format.attach
...@@ -1495,6 +1535,7 @@ _git_config () ...@@ -1495,6 +1535,7 @@ _git_config ()
gitcvs.enabled gitcvs.enabled
gitcvs.logfile gitcvs.logfile
gitcvs.usecrlfattr gitcvs.usecrlfattr
guitool.
gui.blamehistoryctx gui.blamehistoryctx
gui.commitmsgwidth gui.commitmsgwidth
gui.copyblamethreshold gui.copyblamethreshold
...@@ -1538,6 +1579,7 @@ _git_config () ...@@ -1538,6 +1579,7 @@ _git_config ()
log.date log.date
log.showroot log.showroot
mailmap.file mailmap.file
man.
man.viewer man.viewer
merge.conflictstyle merge.conflictstyle
merge.log merge.log
...@@ -1545,6 +1587,7 @@ _git_config () ...@@ -1545,6 +1587,7 @@ _git_config ()
merge.stat merge.stat
merge.tool merge.tool
merge.verbosity merge.verbosity
mergetool.
mergetool.keepBackup mergetool.keepBackup
mergetool.prompt mergetool.prompt
pack.compression pack.compression
...@@ -1556,6 +1599,7 @@ _git_config () ...@@ -1556,6 +1599,7 @@ _git_config ()
pack.threads pack.threads
pack.window pack.window
pack.windowMemory pack.windowMemory
pager.
pull.octopus pull.octopus
pull.twohead pull.twohead
push.default push.default
...@@ -1593,6 +1637,7 @@ _git_config () ...@@ -1593,6 +1637,7 @@ _git_config ()
status.showUntrackedFiles status.showUntrackedFiles
tar.umask tar.umask
transfer.unpackLimit transfer.unpackLimit
url.
user.email user.email
user.name user.name
user.signingkey user.signingkey
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册