From: Clint Adams <clint@zsh.org>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: Re: Fix a typo in _git.
Date: Tue, 19 Aug 2008 01:05:39 +0000 [thread overview]
Message-ID: <20080819010539.GB13979@scru.org> (raw)
In-Reply-To: <237967ef0808181737i29029b0kb170942152ff57fd@mail.gmail.com>
On Tue, Aug 19, 2008 at 02:37:34AM +0200, Mikael Magnusson wrote:
> The man page and the command are both happy with -l -s. With recent git
> versions, the -l option is always a no-op anyway... But in all honesty,
> I think I just hadn't figured out what the (I) construction did then :).
> It is still mystifying to me why _git-branch cares where on the command-line
> the -v appears.
You don't need the local -a shared anymore in that case either.
Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.80
diff -u -r1.80 _git
--- Completion/Unix/Command/_git 19 Aug 2008 01:01:06 -0000 1.80
+++ Completion/Unix/Command/_git 19 Aug 2008 01:03:59 -0000
@@ -1590,20 +1590,16 @@
# TODO: The --no-checkout is undocumented.
(( $+functions[_git-clone] )) ||
_git-clone () {
- local -a shared
-
- if (( words[(I)(-l|--local)] )); then
- shared=('(-s --shared)'{-s,--shared}'[share the objects with the source repository]')
- fi
_arguments \
'--bare[make a bare GIT repository]' \
'(-l --local)'{-l,--local}'[perform a local cloning of a repository]' \
- $shared \
+ '(-s --shared)'{-s,--shared}'[share the objects with the source repository (warning: see man page)]'
'--reference[reference repository]:repository:_directories' \
'(-q --quiet)'{-q,--quiet}'[operate quietly]' \
- '-n[do not checkout HEAD after clone is complete]' \
+ '(-n --no-checkout)'{-n,--no-checkout}'[do not checkout HEAD after clone is complete]' \
'(-o --origin)'{-o,--origin}'[use given name instead of "origin" as branch name]:name:__git_guard_branch-name' \
+ '--no-hardlinks[copy files instead of hardlinking when doing a local clone]' \
$upload_pack_arg \
$template_arg \
'--depth[create a shallow clone, given number of revisions deep]: :_guard "[[\:digit\:]]##" depth' \
next prev parent reply other threads:[~2008-08-19 1:05 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 23:56 Mikael Magnusson
2008-08-16 0:45 ` Clint Adams
2008-08-16 12:56 ` Clint Adams
2008-08-16 13:25 ` Clint Adams
2008-08-16 13:55 ` Clint Adams
2008-08-16 16:15 ` Clint Adams
2008-08-16 17:59 ` Clint Adams
2008-08-16 18:29 ` Clint Adams
2008-08-17 14:03 ` Clint Adams
2008-08-17 17:13 ` Clint Adams
2008-08-17 17:27 ` Mikael Magnusson
2008-08-18 1:46 ` Clint Adams
2008-08-18 9:47 ` Mikael Magnusson
2008-08-18 20:10 ` Mikael Magnusson
2008-08-18 22:45 ` Clint Adams
2008-08-19 0:09 ` Mikael Magnusson
2008-08-19 0:25 ` Clint Adams
2008-08-19 0:37 ` Mikael Magnusson
2008-08-19 0:39 ` Mikael Magnusson
2008-08-19 0:58 ` Clint Adams
2008-08-19 1:05 ` Clint Adams [this message]
2008-08-17 23:23 ` Mikael Magnusson
2008-08-17 23:30 ` Mikael Magnusson
2008-08-18 0:08 ` Phil Pennock
2008-08-19 1:08 ` Clint Adams
2008-08-19 1:41 ` Clint Adams
-- strict thread matches above, loose matches on Subject: below --
2007-10-18 21:23 Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080819010539.GB13979@scru.org \
--to=clint@zsh.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).