>From 247eef0799cba3938f59d746830ef108d277acb6 Mon Sep 17 00:00:00 2001 From: Dominik Vogt Date: Wed, 23 Jan 2008 08:54:03 +0100 Subject: [PATCH] Fixed syntax error in git-clone completion Fixed a todo and cleanup. --- _git | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/_git b/_git index 0a6cebf..6677bac 100644 --- a/_git +++ b/_git @@ -488,7 +488,6 @@ _git-name-rev () { '(--stdin --all)*:commit-ish:__git_revisions' && ret=0 } -# TODO: --no-merges undocumented _git-rev-list () { if (( $words[(I)--] && $words[(I)--] != CURRENT )); then _arguments \ @@ -507,6 +506,7 @@ _git-rev-list () { '--max-count[maximum number of commits to output]: :_guard "[[\:digit\:]]#" timestamp' \ '(--topo-order)--merge-order[decompose into minimal and maximal epochs]' \ '--min-age[minimum age of commits to output]: :_guard "[[\:digit\:]]#" timestamp' \ + '--no-merges[do not print commits with more than one parent]' '--parents[show parent commits]' \ '(--header)'$pretty_arg \ '(--dense)--sparse[when paths are given, output only commits that changes any of them]' \ @@ -726,7 +726,7 @@ _git-clone () { _arguments \ '(-l --local)'{-l,--local}'[perform a local cloning of a repository]' \ - $shared + $shared \ '(-q --quiet)'{-q,--quiet}'[operate quietly]' \ '-n[do not checkout HEAD after clone is complete]' \ '(-u --upload-pack)'{-u,--uploadpack}'[specify path to git-upload-pack on remote side]:remote path' \ @@ -1138,23 +1138,23 @@ __git_guard () { } __git_objects () { - __git_guard $* "[[:xdigit:]]#" "object" + __git_guard $@ "[[:xdigit:]]#" "object" } __git_trees () { - __git_guard $* "[[:xdigit:]]#" "tree" + __git_guard $@ "[[:xdigit:]]#" "tree" } __git_tree_ishs () { - __git_guard $* "[[:xdigit:]]#" "tree-ish" + __git_guard $@ "[[:xdigit:]]#" "tree-ish" } __git_blobs () { - _git_guard $* "[[:xdigit:]]#" 'blob id' + _git_guard $@ "[[:xdigit:]]#" 'blob id' } __git_stages () { - __git_guard $* "[[:digit:]]#" 'stage' + __git_guard $@ "[[:digit:]]#" 'stage' } __git_files () { @@ -1189,7 +1189,7 @@ __git_commits () { # TODO: deal with prefixes and suffixes listed in git-rev-parse __git_revisions () { - __git_commits $* + __git_commits } __git_commits2 () { -- 1.5.3.5.GIT