1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-29 05:21:00 +01:00

Sean Finney: 24115: offer tags as well as heads where refspecs are valid.

This commit is contained in:
Clint Adams 2007-11-22 19:09:27 +00:00
parent 1777402dfa
commit c406f4366e
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2007-11-22 Clint Adams <clint@zsh.org> 2007-11-22 Clint Adams <clint@zsh.org>
* Sean Finney: 24115: Completion/Unix/Command/_git: offer tags as
well as heads where refspecs are valid.
* 24114: Completion/Unix/Command/_git: make colon suffix removable * 24114: Completion/Unix/Command/_git: make colon suffix removable
after the first part of refspecs. after the first part of refspecs.

View file

@ -2801,7 +2801,9 @@ __git_ref_specs () {
if compset -S ':*'; then if compset -S ':*'; then
__git_heads __git_heads
else else
__git_heads -qS ':' _alternative \
'tags:tag:__git_tags' \
'heads:head:__git_heads -qS :'
fi fi
fi fi
} }