From 4df66c40b08931eb224964f12decbb0f660cf932 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 10 Aug 2018 18:51:34 +0200 Subject: rebase -i: rewrite checkout_onto() in C MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This rewrites checkout_onto() from shell to C. A new command (“checkout-onto”) is added to rebase--helper.c. The shell version is then stripped. Signed-off-by: Alban Gruin Signed-off-by: Junio C Hamano --- sequencer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sequencer.h') diff --git a/sequencer.h b/sequencer.h index f619b02a13..d2b54adf45 100644 --- a/sequencer.h +++ b/sequencer.h @@ -110,6 +110,9 @@ void commit_post_rewrite(const struct commit *current_head, const struct object_id *new_head); int prepare_branch_to_be_rebased(struct replay_opts *opts, const char *commit); +int checkout_onto(struct replay_opts *opts, + const char *onto_name, const char *onto, + const char *orig_head); #define SUMMARY_INITIAL_COMMIT (1 << 0) #define SUMMARY_SHOW_AUTHOR_DATE (1 << 1) -- cgit v1.2.3