about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-09-30 19:23:13 +0000
committerClint Adams <clint@users.sourceforge.net>2007-09-30 19:23:13 +0000
commit40583814f90bdaac8c62f14a73198e81d4025680 (patch)
treea3cb9f12d7fd71fbbe64d4b41bfadb8fcec9f7c5 /Completion/Unix/Command
parentc92ca0be5bccc8565c4a916e07a7c5833d13c80f (diff)
downloadzsh-40583814f90bdaac8c62f14a73198e81d4025680.tar.gz
zsh-40583814f90bdaac8c62f14a73198e81d4025680.tar.xz
zsh-40583814f90bdaac8c62f14a73198e81d4025680.zip
23874: only declare revision_arguments parameter once.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_git15
1 files changed, 1 insertions, 14 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 120c7b406..16ef865a6 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -15,6 +15,7 @@ local author_conversion_file_arg long_author_conversion_file_arg verbose_arg
 local help_arg template_arg shared_arg thin_arg author_conversion_file_arg_spec
 local -a diff_args fetch_args merge_args force_ref_arg tags_fetch_arg
 local -a upload_pack_arg common_fetch_args common_apply_args
+local -a revision_arguments
 
 nul_arg='-z[use NUL termination on output]'
 abbrev_arg='--abbrev=-[set minimum SHA1 display-length]: :_guard "[[\:digit\:]]#" length'
@@ -976,8 +977,6 @@ _git-rev-list () {
     _arguments \
       '*:index file:__git_cached_files' && ret=0
   else
-    declare -a revision_arguments
-
     __git_setup_revision_arguments
 
     _arguments -S \
@@ -1011,8 +1010,6 @@ _git-show-ref () {
 
 (( $+functions[_git-show] )) ||
 _git-show () {
-  declare -a revision_arguments
-
   __git_setup_revision_arguments
 
   _arguments -S \
@@ -1153,8 +1150,6 @@ _git-sh-setup () {
 # TODO: -- undocumented.
 (( $+functions[_git-reflog] )) ||
 _git-reflog () {
-  declare -a revision_arguments
-
   __git_setup_revision_arguments
 
   if (( CURRENT == 2 )); then
@@ -1707,8 +1702,6 @@ _git-grep () {
 
 (( $+functions[_git-log] )) ||
 _git-log () {
-  declare -a revision_arguments
-
   __git_setup_revision_arguments
 
   _arguments -S \
@@ -1854,8 +1847,6 @@ _git-revert () {
 # less what git-rev-list takes).
 (( $+functions[_git-shortlog] )) ||
 _git-shortlog () {
-  declare -a revision_arguments
-
   __git_setup_revision_arguments
 
   _arguments -S \
@@ -1906,8 +1897,6 @@ _git-verify-tag () {
 # TODO: This should take those arguments that git-diff-tree can take, as well.
 (( $+functions[_git-whatchanged] )) ||
 _git-whatchanged () {
-  declare -a revision_arguments
-
   __git_setup_revision_arguments
 
   _arguments -S \
@@ -2442,8 +2431,6 @@ _git-svn () {
             '--minimize[undocumented]')
           ;;
         (log)
-          declare -a revision_arguments
-
           __git_setup_revision_arguments
 
           arguments+=(