commit | a0434cad2e2212f921e4f92ce9139702acd10eb4 | [log] [tgz] |
---|---|---|
author | Vincent Driessen <vincent@datafox.nl> | 周一 1月 25 17:28:22 2010 +0100 |
committer | Vincent Driessen <vincent@datafox.nl> | 周一 1月 25 17:28:22 2010 +0100 |
tree | 3295e643d286cf40b289bcd463ecfee70ac78d27 | |
parent | 4f1cc330446627af485a054cab14003781a97f9f [diff] |
Add warn() function and redefine die() in terms of warn.
diff --git a/gitflow-sh-setup b/gitflow-sh-setup index 3c1f908..7fbef51 100755 --- a/gitflow-sh-setup +++ b/gitflow-sh-setup
@@ -20,10 +20,8 @@ REMOTE_BRANCHES=$(cd "$GIT_DIR/refs/remotes"; find * -type f) ALL_BRANCHES="$LOCAL_BRANCHES\n$REMOTE_BRANCHES" -die() { - echo "$@" >&2 - exit 1 -} +warn() { echo "$@" >&2; } +die() { warn "$@"; exit 1; } gitflow_check_clean_working_tree() { # TODO: Implement this