From 18fe0accf1f2d8db7e8d989c8eecb1a35652fce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aljaz=CC=8C=20=22g5pw=22=20Srebrnic=CC=8C?= Date: Tue, 20 Aug 2013 23:03:01 +0200 Subject: [PATCH] Complete commands when using batch-cmd --- lib/git/repo_index.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/git/repo_index.sh b/lib/git/repo_index.sh index dd8220d..242a2c8 100644 --- a/lib/git/repo_index.sh +++ b/lib/git/repo_index.sh @@ -327,7 +327,7 @@ else "--update-all-with-notifications[Update all indexed repositories with notifications]" \ "--list[List all repositories currently present in the index]" \ "--count-by-host[Count all repositories per host]" \ - "--batch-cmd+[Run a git command on all repositories]:git command:->git_command" \ + "--batch-cmd+[Run a command on all repositories]:command:->command" \ "1::Git projects:->projects" \ && return 0 @@ -343,8 +343,11 @@ else compadd -X "Git projects" $(sed -e 's:.*/::' -e 's:$:/:' "$GIT_REPO_DIR/.git_index") && return 0 fi ;; - git_command) - ;; + command) + local ret=1 + _call_function ret _command_names + return ret + ;; esac return 1;