Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _git: auto-removable '..' suffix: remove at the end of lines
- X-seq: zsh-users 18655
- From: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: [PATCH] _git: auto-removable '..' suffix: remove at the end of lines
- Date: Sat, 22 Mar 2014 17:43:45 +0100
- Cc: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=da645piBSKDkVfgqTY2eVVEVPbaRh7FaFnq6BGxaIZE=; b=bgJ5pZC1d6H+s2Kr+tD5p/sBx91xm/brygTKi4Wd80/Z5SErvLFpz2lFBo+o+Spd+l HG/MWk+KuBP6c4X6PodqW23Eaq7temcygIT0S0Eh6GrWi6sNGeWVGfbdgbXnrrYZLWSs Pp+x/yuczdbR7CNErOt388daWTUzhrwAqa/T+NjiYe1ZqXwCgKXV7ud1IMBmoM1z09UK vrnM2Yt+s8XQ4vAPcl6lOe68GyfjLBFGWUVAv9RRp68m00pCr8yFJhLMEKowj0NQdIWS UxE4q8emKwQbYHam1c6uQxz9JchniA1+/0KRHXzcxBhlD4KLguLIIn+MfVHYEBFv9QCK ZnPg==
- In-reply-to: <532D99DE.6090503@googlemail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <532D99DE.6090503@googlemail.com>
Make sure
$ git log mast<tab><return>
results in
$ git log master
and not
$ git log master..
---
Completion/Unix/Command/_git | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index b082bb0..606b5e0 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5602,7 +5602,7 @@ __git_commit_ranges () {
if compset -P '*..(.|)'; then
__git_commits $*
else
- compset -S '..*' || suf=( -qS .. -r '.@~ ^:' )
+ compset -S '..*' || suf=( -S .. -r '.@~ ^:\t\n\-' )
__git_commits $* $suf
fi
}
--
1.9.1.286.g5172cb3
Messages sorted by:
Reverse Date,
Date,
Thread,
Author