Skip to content

Commit 6c36c9e

Browse files
spearcegitster
authored andcommitted
bash completion: Don't offer "a.." as a completion for "a."
If the user is trying to complete "v1.5.3.<tab>" to see all of the available maintenance releases for 1.5.3 we should not give them an extra dot as the completion. Instead if the user wants a ".." or a "..." operator they should key the two dots out on their own. Its the same number of keystrokes either way. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ab02dfe commit 6c36c9e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

contrib/completion/git-completion.bash

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,6 @@ __git_complete_revlist ()
324324
cur="${cur#*..}"
325325
__gitcomp "$(__git_refs)" "$pfx" "$cur"
326326
;;
327-
*.)
328-
__gitcomp "$cur."
329-
;;
330327
*)
331328
__gitcomp "$(__git_refs)"
332329
;;

0 commit comments

Comments
 (0)