Ensure consistent code style and indentation

This commit is contained in:
2013-04-25 23:34:52 +01:00
parent b874b7563e
commit ed499a156d

View File

@@ -1,10 +1,9 @@
find_git_branch() {
local branch
# Based on: http://stackoverflow.com/a/13003854/170413
if branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
then
local branch
if branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null); then
if [[ "$branch" == "HEAD" ]]; then
branch='(detached head)'
branch='detached*'
fi
git_branch="($branch)"
else