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