This commit is contained in:
azure 2017-11-26 10:11:17 +00:00 committed by GitHub
commit 98a98a29fe
4 changed files with 465 additions and 2 deletions

View file

@ -42,8 +42,10 @@ svn_get_branch_name() {
if [[ -z "$_DISPLAY" ]]; then
svn_get_repo_name
elif [ "x$_DISPLAY" = "xtrunk" ]; then
echo "trunk"
else
echo $_DISPLAY
echo "NOT trunk"
fi
}
@ -63,9 +65,11 @@ svn_dirty_choose() {
if svn status $root 2> /dev/null | command grep -Eq '^\s*[ACDIM!?L]'; then
# Grep exits with 0 when "One or more lines were selected", return "dirty".
echo $1
elif $(echo $status_str | grep -Eq '^\s*[?]'); then
echo $2
else
# Otherwise, no lines were found, or an error occurred. Return clean.
echo $2
echo $3
fi
fi
}