summaryrefslogtreecommitdiff
path: root/01_Internal.zsh
diff options
context:
space:
mode:
Diffstat (limited to '01_Internal.zsh')
-rw-r--r--01_Internal.zsh8
1 files changed, 2 insertions, 6 deletions
diff --git a/01_Internal.zsh b/01_Internal.zsh
index f11a2bc..b8bec64 100644
--- a/01_Internal.zsh
+++ b/01_Internal.zsh
@@ -164,6 +164,8 @@ __get_git_branch ()
fi
fi
+ my_git_branch="→"$my_git_branch"←"
+
# Rebase in progress ?
if [ -d $GIT_DIR/rebase-merge -o -d $GIT_DIR/rebase-apply ]
then
@@ -187,7 +189,6 @@ __get_git_branch ()
last=$(cat $REBASE_DIR/last)
fi
- # Then the result
my_git_branch="[$current/$last: "$(git name-rev --name-only "$(cat $REBASE_DIR/onto 2>/dev/null)" 2>/dev/null | __cleanup_git_branch_name)".."$(echo $my_git_branch)"]"
[ -r $REBASE_DIR/head-name ] && my_git_branch=$my_git_branch" "$(< $REBASE_DIR/head-name sed 's/^refs\///;s/^heads\///')
else
@@ -195,11 +196,6 @@ __get_git_branch ()
[ ! "$checkouted_branch" ] && my_git_branch="($my_git_branch)"
fi
- if [ "$(git status 2>&- | grep "new file" | head -n1)" != "" ] ; then
- # ADDED FILES
- my_git_branch=$my_git_branch
- fi
-
echo " "$my_git_branch
}