mirror of git://git.code.sf.net/p/zsh/code
25495: always complete cached files after git checkout --.
This commit is contained in:
parent
ed34e682ad
commit
7b559ca54a
|
@ -1,5 +1,8 @@
|
|||
2008-08-21 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 25495: Completion/Unix/Command/_git: always complete cached files
|
||||
after git checkout --.
|
||||
|
||||
* 25493: Completion/Unix/Command/_git: allow -q to be used in all
|
||||
git checkout contexts.
|
||||
|
||||
|
|
|
@ -1543,10 +1543,8 @@ _git-checkout () {
|
|||
new_branch_reflog_arg='-l[create the new branch'\''s reflog]'
|
||||
fi
|
||||
|
||||
if (( words[(I)--] > 0 && words[(I)--] < CURRENT )); then
|
||||
_arguments -C -S \
|
||||
- update-files \
|
||||
'*::file:->files' && ret=0
|
||||
if compset -N '--'; then
|
||||
__git_cached_files
|
||||
else
|
||||
_arguments -C -S \
|
||||
'-q[suppress feedback messages]' \
|
||||
|
|
Loading…
Reference in New Issue