about summary refs log tree commit diff
path: root/Completion/Unix/Command/_git
diff options
context:
space:
mode:
authorGastón Haro <gaston.haro@fing.edu.uy>2020-03-28 17:01:05 -0300
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-28 22:49:41 +0000
commita6610c4a17637cde780f9088273929071b742ef8 (patch)
treee808ee92fe7d5e0fdb741cb837ba4763df7a7b8c /Completion/Unix/Command/_git
parentf306221674af05422c9fd60410f2ab054e123255 (diff)
downloadzsh-a6610c4a17637cde780f9088273929071b742ef8.tar.gz
zsh-a6610c4a17637cde780f9088273929071b742ef8.tar.xz
zsh-a6610c4a17637cde780f9088273929071b742ef8.zip
github #46: _git-restore: Complete arguments to the --source option after a '=' sign
Diffstat (limited to 'Completion/Unix/Command/_git')
-rw-r--r--Completion/Unix/Command/_git2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 15280db70..9eeff6a49 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1548,7 +1548,7 @@ _git-restore() {
   local -A opt_args
 
   _arguments -C -s -S $endopt \
-    '(-s --source)'{-s,--source}'[specify which tree-ish to checkout from]:source tree:->sources' \
+    '(-s --source)'{-s,--source=}'[specify which tree-ish to checkout from]:source tree:->sources' \
     '(-S --staged)'{-S,--staged}'[restore the index]' \
     '(-W --worktree)'{-W,--worktree}'[restore the working tree (default)]' \
     '--ignore-unmerged[ignore unmerged entries]' \