Commit a0434cad authored by Vincent Driessen's avatar Vincent Driessen

Add warn() function and redefine die() in terms of warn.

parent 4f1cc330
...@@ -20,10 +20,8 @@ LOCAL_BRANCHES=$(cd "$GIT_DIR/refs/heads"; find * -type f) ...@@ -20,10 +20,8 @@ LOCAL_BRANCHES=$(cd "$GIT_DIR/refs/heads"; find * -type f)
REMOTE_BRANCHES=$(cd "$GIT_DIR/refs/remotes"; find * -type f) REMOTE_BRANCHES=$(cd "$GIT_DIR/refs/remotes"; find * -type f)
ALL_BRANCHES="$LOCAL_BRANCHES\n$REMOTE_BRANCHES" ALL_BRANCHES="$LOCAL_BRANCHES\n$REMOTE_BRANCHES"
die() { warn() { echo "$@" >&2; }
echo "$@" >&2 die() { warn "$@"; exit 1; }
exit 1
}
gitflow_check_clean_working_tree() { gitflow_check_clean_working_tree() {
# TODO: Implement this # TODO: Implement this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment