]> git.ipfire.org Git - thirdparty/git.git/commit
rebase -i: rewrite write_basic_state() in C
authorAlban Gruin <alban.gruin@gmail.com>
Tue, 28 Aug 2018 12:10:40 +0000 (14:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Aug 2018 20:38:18 +0000 (13:38 -0700)
commit65850686cf072d6de88880247adb7113db8a52f2
tree5fbea0be6ec16fe712d62503ed6a885b804bc9c8
parentf22e4e1a3c2faaac59099aaca15641c18f478f77
rebase -i: rewrite write_basic_state() in C

This rewrites write_basic_state() from git-rebase.sh in C.  This is the
first step in the conversion of init_basic_state(), hence the mode in
rebase--helper.c is called INIT_BASIC_STATE.  init_basic_state() will be
converted in the next commit.

The part of read_strategy_opts() that parses the stategy options is
moved to a new function to allow its use in rebase--helper.c.

Finally, the call to write_basic_state() is removed from
git-rebase--interactive.sh, replaced by a call to `--init-basic-state`.

Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase--helper.c
git-rebase--interactive.sh
sequencer.c
sequencer.h