summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-07-29 17:00:06 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-08-01 08:01:24 +0000
commit0782e0a0a60ade8ba7c2e7b99d488fcd75663e2c (patch)
treec92bf4ad54f19704df1d5a771bf94dffa5d1a985 /Completion/Unix/Command
parentunposted: _git: Clean up superfluous and missing backslashes. (diff)
downloadzsh-0782e0a0a60ade8ba7c2e7b99d488fcd75663e2c.tar
zsh-0782e0a0a60ade8ba7c2e7b99d488fcd75663e2c.tar.gz
zsh-0782e0a0a60ade8ba7c2e7b99d488fcd75663e2c.tar.bz2
zsh-0782e0a0a60ade8ba7c2e7b99d488fcd75663e2c.tar.lz
zsh-0782e0a0a60ade8ba7c2e7b99d488fcd75663e2c.tar.xz
zsh-0782e0a0a60ade8ba7c2e7b99d488fcd75663e2c.tar.zst
zsh-0782e0a0a60ade8ba7c2e7b99d488fcd75663e2c.zip
38961: _git-config: No functional change: rename $git_options_static to $git_options in preparation for the after-next commit.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_git24
1 files changed, 12 insertions, 12 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 95995f69b..b23076a1a 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1959,8 +1959,8 @@ _git-config () {
# TODO: Add support for merge.*. (merge driver), diff.*. (diff driver), and filter.*. (filter driver) options
# (see gitattributes(5)).
# TODO: .path options should take absolute paths.
- declare -a git_options_static
- git_options_static=(
+ declare -a git_options
+ git_options=(
advice.pushNonFastForward:'show advice when git push refuses non-fast-forward refs::->bool:true'
advice.pushUpdateRejected:'combined setting for advice.push*::->bool:true'
advice.pushNonFFCurrent:'show advice when git push fails due to a non-fast-forward update to the current branch::->bool:true'
@@ -2474,10 +2474,10 @@ _git-config () {
if compset -P '[^.]##.*.'; then
declare -a match mbegin mend
- # When completing 'remote.foo.<TAB>', offer 'bar' if $git_options_static contains 'remote.foo.bar'.
- options+=(${${${${(M)git_options_static:#(#i)${IPREFIX}[^.:]##:*}#(#i)${IPREFIX}}/#(#b)([^:]##:)([^\\:]#(\\?[^\\:]#)#:[^\\:]#(\\?[^\\:]#)#:->bool)/$match[1]whether or not to $match[2]}/#(#b)([^:]##:([^\\:]#(\\?[^\\:]#)#))*/$match[1]})
- # When completing 'remote.foo.<TAB>', offer 'bar' if $git_options_static contains 'remote.*.bar'.