diff options
| author | Clint Adams <clint@users.sourceforge.net> | 2007-11-22 19:09:27 +0000 |
|---|---|---|
| committer | Clint Adams <clint@users.sourceforge.net> | 2007-11-22 19:09:27 +0000 |
| commit | c406f4366e47515f1a740df56ec0e32cdcb429bf (patch) | |
| tree | 469259babb44cb00ea84d68c44aa2f05e67b0825 /Completion/Unix/Command/_git | |
| parent | 24114: make colon suffix removable after the first part of refspecs. (diff) | |
| download | zsh-c406f4366e47515f1a740df56ec0e32cdcb429bf.tar zsh-c406f4366e47515f1a740df56ec0e32cdcb429bf.tar.gz zsh-c406f4366e47515f1a740df56ec0e32cdcb429bf.tar.bz2 zsh-c406f4366e47515f1a740df56ec0e32cdcb429bf.tar.lz zsh-c406f4366e47515f1a740df56ec0e32cdcb429bf.tar.xz zsh-c406f4366e47515f1a740df56ec0e32cdcb429bf.tar.zst zsh-c406f4366e47515f1a740df56ec0e32cdcb429bf.zip | |
Sean Finney: 24115: offer tags as well as heads where refspecs are valid.
Diffstat (limited to 'Completion/Unix/Command/_git')
| -rw-r--r-- | Completion/Unix/Command/_git | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 38a5ca58f..6a7d4b7c2 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -2801,7 +2801,9 @@ __git_ref_specs () { if compset -S ':*'; then __git_heads else - __git_heads -qS ':' + _alternative \ + 'tags:tag:__git_tags' \ + 'heads:head:__git_heads -qS :' fi fi } |
