summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@openwide.fr>2009-10-01 17:18:00 +0200
committerHugues Hiegel <hugues.hiegel@openwide.fr>2009-10-01 17:18:00 +0200
commite47d74524a218159ea4d04aab36a61a9cc704694 (patch)
treec8a17f3b7cc6fb26f7cd3b3feaccbfbed731dce3 /01_Functions.zsh
parent71f1fe09120681fe8c33d866a0483ed13ea37cd1 (diff)
[Funcs] when rebasing, show full head name without 'refs/' and 'heads/' part
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index de4aa2d..9977147 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -141,7 +141,7 @@ get_git_branch ()
fi
# Then the result
- my_git_branch="[rebase $current/$last: "$(git-name-rev --name-only $(cat $REBASE_DIR/onto))".."$my_git_branch"] "$(basename $(cat $REBASE_DIR/head-name))
+ my_git_branch="[rebase $current/$last: "$(git-name-rev --name-only $(cat $REBASE_DIR/onto))".."$my_git_branch"] "$(< $REBASE_DIR/head-name sed 's/^refs\///;s/^heads\///')
else
# No rebase in progress, put '(' ')' if needed
[ ! "$checkouted_branch" ] && my_git_branch="($my_git_branch)"