Add warn() function and redefine die() in terms of warn.
This commit is contained in:
parent
4f1cc33044
commit
a0434cad2e
1 changed files with 2 additions and 4 deletions
|
@ -20,10 +20,8 @@ LOCAL_BRANCHES=$(cd "$GIT_DIR/refs/heads"; find * -type f)
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue