aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-07-13 22:06:31 +0000
committerJunio C Hamano <gitster@pobox.com>2008-07-13 16:40:23 -0700
commit6c36c9e4eabadecf75f8751b1c1140da2068e2a0 (patch)
treebdada429149c000096f9d2950c08b64d62bdf8f4 /contrib
parentab02dfe533f55535bdb66e05776a4081020322c6 (diff)
downloadgit-6c36c9e4eabadecf75f8751b1c1140da2068e2a0.tar.gz
git-6c36c9e4eabadecf75f8751b1c1140da2068e2a0.tar.xz
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash3
1 files changed, 0 insertions, 3 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 0734ea313..821c9a7f9 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -324,9 +324,6 @@ __git_complete_revlist ()
cur="${cur#*..}"
__gitcomp "$(__git_refs)" "$pfx" "$cur"
;;
- *.)
- __gitcomp "$cur."
- ;;
*)
__gitcomp "$(__git_refs)"
;;