summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-08-29 02:39:21 +0000
committerClint Adams <clint@users.sourceforge.net>2008-08-29 02:39:21 +0000
commit7ce0886cb32030283a44233173b6acadd1c43666 (patch)
tree316eaf46bf358dc9b111366d0d1c45b50e8a7244
parent85c028bd25dd7ffb85a7ce4429a4ec4ec713b4e3 (diff)
downloadzsh-7ce0886cb32030283a44233173b6acadd1c43666.tar.gz
zsh-7ce0886cb32030283a44233173b6acadd1c43666.zip
Mikael Magnusson: 25539: more 'git clone' fixes.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ed29ab08a..6437d956e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2008-08-29 Clint Adams <clint@zsh.org>
+ * Mikael Magnusson: 25539: Completion/Unix/Command/_git: more
+ 'git clone' fixes.
+
* Frank Terbeck: 25538: Completion/Unix/Command/_git: add missing
backslash.
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 09ffdb5a5..0941d3919 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1610,9 +1610,9 @@ _git-clean () {
# TODO: The --no-checkout is undocumented.
(( $+functions[_git-clone] )) ||
_git-clone () {
-
- _arguments \
+ _arguments -S \
'--bare[make a bare GIT repository]' \
+ '--mirror[clone refs into refs/* instead of refs/remotes/origin/*]' \
'(-l --local)'{-l,--local}'[perform a local cloning of a repository]' \
'(-s --shared)'{-s,--shared}'[share the objects with the source repository (warning: see man page)]' \
'--reference[reference repository]:repository:_directories' \
@@ -1624,7 +1624,7 @@ _git-clone () {
$template_arg \
'--depth[create a shallow clone, given number of revisions deep]: :_guard "[[\:digit\:]]##" depth' \
':repository:__git_any_repositories' \
- '*:directory:_directories' && ret=0
+ ':directory:_directories' && ret=0
}
(( $+functions[_git-commit] )) ||