about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Unix/Command/_git4
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 5f7184824..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 -S ':'
+      _alternative \
+       'tags:tag:__git_tags' \
+       'heads:head:__git_heads -qS :'
     fi
   fi
 }