Skip to content

Commit

Permalink
Add 'fatal' prefix for messages, like Git does itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Feb 2, 2010
1 parent e168487 commit 4c92a9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-flow
Expand Up @@ -111,16 +111,16 @@ gitflow_require_clean_working_tree() {
gitflow_test_clean_working_tree
result=$?
if [ $result -eq 1 ]; then
die "Working tree contains unstaged changes. Aborting ..."
die "fatal: Working tree contains unstaged changes. Aborting."
fi
if [ $result -eq 2 ]; then
die "Index contains uncommited changes. Aborting ..."
die "fatal: Index contains uncommited changes. Aborting."
fi
}

gitflow_require_local_branch() {
if ! has $1 $LOCAL_BRANCHES; then
die "Local branch '$1' does not exist and is required."
die "fatal: Local branch '$1' does not exist and is required."
fi
}

Expand Down

0 comments on commit 4c92a9d

Please sign in to comment.