diff --git a/git-rebase.sh b/git-rebase.sh
index 38cbee7dced95556141cc7f635979032ad7f52c9..00ca7b99fef35e21d24af844e6dbaa92cab5834f 100755 (executable)
--- a/git-rebase.sh
+++ b/git-rebase.sh
Example: git-rebase master~1 topic
Example: git-rebase master~1 topic
- A---B---C topic A'\''--B'\''--C'\'' topic
+ A---B---C topic A'\''--B'\''--C'\'' topic
/ --> /
D---E---F---G master D---E---F---G master
'
/ --> /
D---E---F---G master D---E---F---G master
'
"
. git-sh-setup
set_reflog_action rebase
"
. git-sh-setup
set_reflog_action rebase
-require_work_tree
+require_work_tree_exists
cd_to_toplevel
LF='
cd_to_toplevel
LF='
then
head_name="detached HEAD"
else
then
head_name="detached HEAD"
else
- echo >&2 "fatal: no such branch: $1"
- usage
+ die "fatal: no such branch: $1"
fi
;;
*)
fi
;;
*)