From 8d7f785ea94e946b1b727bfbce8772f69602975d Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 27 Aug 2012 20:40:15 -0400 Subject: [PATCH] Remove the unnecessary action local variable --- modules/git/functions/git-info | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/git/functions/git-info b/modules/git/functions/git-info index 81b5ba4e..b199acc6 100644 --- a/modules/git/functions/git-info +++ b/modules/git/functions/git-info @@ -70,7 +70,6 @@ omodload 'trap' # Gets the Git special action (am, bisect, cherry, merge, rebase). # Borrowed from vcs_info and edited. function _git-action { - local action='' local action_dir local git_dir="$(git-dir)" @@ -80,13 +79,12 @@ function _git-action { "${git_dir}/../.dotest"; do if [[ -d "$action_dir" ]] ; then if [[ -f "${action_dir}/rebasing" ]] ; then - action='rebase' + print 'rebase' elif [[ -f "${action_dir}/applying" ]] ; then - action='am' + print 'am' else - action='am/rebase' + print 'am/rebase' fi - print "$action" return 0 fi done