]> git.ipfire.org Git - thirdparty/git.git/commit - strbuf.c
builtin rebase: support --continue
authorPratik Karki <predatoramigo@gmail.com>
Wed, 8 Aug 2018 15:06:16 +0000 (20:51 +0545)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Sep 2018 18:55:58 +0000 (11:55 -0700)
commitf95736288a3a8d0168af3fc05dc4251edf0d0b47
tree280d5684d592d90ebfa5f818041764ec8a7a2b34
parente65123a71d0ca134f901e2340674a712e70ce023
builtin rebase: support --continue

This commit adds the option `--continue` which is used to resume
rebase after merge conflicts. The code tries to stay as close to
the equivalent shell scripts found in `git-legacy-rebase.sh` as
possible.

When continuing a rebase, the state variables are read from state_dir.
Some of the state variables are not actually stored there, such as
`upstream`. The shell script version simply does not set them, but for
consistency, we unset them in the builtin version.

Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c
strbuf.c
strbuf.h