From c406f4366e47515f1a740df56ec0e32cdcb429bf Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Thu, 22 Nov 2007 19:09:27 +0000 Subject: Sean Finney: 24115: offer tags as well as heads where refspecs are valid. --- ChangeLog | 3 +++ Completion/Unix/Command/_git | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 20de0d8dc..e65fff5e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-11-22 Clint Adams + * 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 after the first part of refspecs. 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 } -- cgit 1.4.1