Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fix a typo in _git.
- X-seq: zsh-workers 25485
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Fix a typo in _git.
- Date: Tue, 19 Aug 2008 00:58:34 +0000
- In-reply-to: <237967ef0808181737i29029b0kb170942152ff57fd@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0808151656j7787f169g4b3456910e05bfc2@xxxxxxxxxxxxxx> <20080817171321.GA24334@xxxxxxxx> <237967ef0808171027t4773ff36nb1cfe08942b63a5f@xxxxxxxxxxxxxx> <20080818014613.GA30193@xxxxxxxx> <237967ef0808180247l7b0ed485ob72df0a0637c57e9@xxxxxxxxxxxxxx> <237967ef0808181310kfa7128bt2e0321e77ad96d8f@xxxxxxxxxxxxxx> <20080818224510.GA12825@xxxxxxxx> <237967ef0808181709m1f6d6c5ao2311d960284f5c3f@xxxxxxxxxxxxxx> <20080819002511.GA13736@xxxxxxxx> <237967ef0808181737i29029b0kb170942152ff57fd@xxxxxxxxxxxxxx>
On Tue, Aug 19, 2008 at 02:37:34AM +0200, Mikael Magnusson wrote:
> Hmm yes, but what if you want to type --no-abbrev -v in that order?
Good point. In that case, the my_abbrev bit seems like more trouble
than it's worth.
From: Mikael Magnusson <mikachu@xxxxxxxxx>
Date: Fri, 6 Jun 2008 02:07:03 +0000 (+0200)
Subject: _git: What is my_abbrev about?
X-Git-Url: http://git.mika.l3ib.org:1234/?p=zsh-cvs.git;a=commitdiff_plain;h=6d178b4a0ad761e2e996dd8ee4de82604b6ee129
_git: What is my_abbrev about?
---
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 9236e0b..860cc94 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1475,11 +1475,6 @@ _git-bisect () {
# TODO: complete branch names?
(( $+functions[_git-branch] )) ||
_git-branch () {
- local my_abbrev_arg
- if (( words[(I)-v] > 0 && words[(I)-v] < CURRENT )); then
- my_abbrev_arg=$abbrev_arg
- fi
-
declare -a dependent_deletion_args
if (( words[(I)-d] || words[(I)-D] )); then
dependent_deletion_args=(
@@ -1502,7 +1497,8 @@ _git-branch () {
'( -a)-r[list only the remote-tracking branches]' \
'(-r )-a[list both remote-tracking branches and local branches]' \
'-v[show SHA1 and commit subject line for each head]' \
- $my_abbrev_arg \
+ $abbrev_arg \
+ '--no-abbrev[do not abbreviate sha1s]' \
- create \
'-l[create the branch'\''s reflog]' \
'-f[force the creation of a new branch]' \
Messages sorted by:
Reverse Date,
Date,
Thread,
Author