From bf654dde0980b42acf70ef62cf83d8d84c2eb320 Mon Sep 17 00:00:00 2001
From: Sorin Ionescu <sorin.ionescu@gmail.com>
Date: Mon, 27 Aug 2012 21:34:22 -0400
Subject: [PATCH] Improve the readability of _git-action

---
 modules/git/functions/git-info | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/modules/git/functions/git-info b/modules/git/functions/git-info
index b199acc..54d548d 100644
--- a/modules/git/functions/git-info
+++ b/modules/git/functions/git-info
@@ -76,7 +76,8 @@ function _git-action {
   for action_dir in \
     "${git_dir}/rebase-apply" \
     "${git_dir}/rebase" \
-    "${git_dir}/../.dotest"; do
+    "${git_dir}/../.dotest"
+  do
     if [[ -d "$action_dir" ]] ; then
       if [[ -f "${action_dir}/rebasing" ]] ; then
         print 'rebase'
@@ -85,13 +86,15 @@ function _git-action {
       else
         print 'am/rebase'
       fi
+
       return 0
     fi
   done
 
   for action_dir in \
     "${git_dir}/rebase-merge/interactive" \
-    "${git_dir}/.dotest-merge/interactive"; do
+    "${git_dir}/.dotest-merge/interactive"
+  do
     if [[ -f "$action_dir" ]]; then
       print 'rebase-i'
       return 0
@@ -99,8 +102,9 @@ function _git-action {
   done
 
   for action_dir in \
-    "${git_dir}/rebase-merge" \
-    "${git_dir}/.dotest-merge"; do
+    "${git_dir}/rebase-merge"
+    "${git_dir}/.dotest-merge"
+  do
     if [[ -d "$action_dir" ]]; then
       print 'rebase-m'
       return 0