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>
Shawn O. Pearce committed
Jul 13, 2008 at 22:06 UTC
6c36c9e4eabadecf75f8751b1c1140da2068e2a0
1 file changed
-3
contrib/completion/git-completion.bash
-3
@@ -324,9 +324,6 @@ __git_complete_revlist ()
324
cur="${cur#*..}"
325
__gitcomp "$(__git_refs)" "$pfx" "$cur"
326
;;
327
- *.)
328
- __gitcomp "$cur."
329
- ;;
327
*)
328
__gitcomp "$(__git_refs)"
329
;;