3 $(gettext 'Resolve all conflicts manually, mark them as resolved with
4 "git add
/rm <conflicted_files
>", then run "git rebase
--continue".
5 You can instead skip this commit: run "git rebase
--skip".
6 To abort and get back to the state before "git rebase
", run "git rebase
--abort".')
10 echo "$head_name" > "$state_dir"/head-name
&&
11 echo "$onto" > "$state_dir"/onto
&&
12 echo "$orig_head" > "$state_dir"/orig-head
&&
13 test t
= "$GIT_QUIET" && : > "$state_dir"/quiet
14 test t
= "$verbose" && : > "$state_dir"/verbose
15 test -n "$strategy" && echo "$strategy" > "$state_dir"/strategy
16 test -n "$strategy_opts" && echo "$strategy_opts" > \
17 "$state_dir"/strategy_opts
18 test -n "$allow_rerere_autoupdate" && echo "$allow_rerere_autoupdate" > \
19 "$state_dir"/allow_rerere_autoupdate
20 test -n "$gpg_sign_opt" && echo "$gpg_sign_opt" > "$state_dir"/gpg_sign_opt
21 test -n "$signoff" && echo "$signoff" >"$state_dir"/signoff
22 test -n "$reschedule_failed_exec" && : > "$state_dir"/reschedule-failed-exec
26 if test -f "$state_dir/autostash"
28 stash_sha1
=$
(cat "$state_dir/autostash")
29 if git stash apply
$stash_sha1 >/dev
/null
2>&1
31 echo "$(gettext 'Applied autostash.')" >&2
33 git stash store
-m "autostash" -q $stash_sha1 ||
34 die
"$(eval_gettext "Cannot store \
$stash_sha1")"
35 gettext 'Applying autostash resulted in conflicts.
36 Your changes are safe in the stash.
37 You can run "git stash pop" or "git stash drop" at any time.
43 move_to_original_branch
() {
46 message
="rebase finished: $head_name onto $onto"
47 git update-ref
-m "$message" \
48 $head_name $
(git rev-parse HEAD
) $orig_head &&
50 -m "rebase finished: returning to $head_name" \
52 die
"$(eval_gettext "Could not move back to \
$head_name")"
62 test $status != 0 && printf "%s\n" "$output"