1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

github #46: _git-restore: Complete arguments to the --source option after a '=' sign

This commit is contained in:
Gastón Haro 2020-03-28 17:01:05 -03:00 committed by Daniel Shahaf
parent f306221674
commit a6610c4a17
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2020-03-28 Gastón Haro <gaston.haro@fing.edu.uy>
* github #46: Completion/Unix/Command/_git: _git-restore:
Complete arguments to the --source option after a '=' sign
2020-03-28 Gastón Haro <harogaston@users.noreply.github.com>
* github #46: Completion/Unix/Command/_git: Better restrict

View file

@ -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]' \