diff options
author | Alban Gruin <alban.gruin@gmail.com> | 2018-08-10 18:51:34 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-10 11:56:22 -0700 |
commit | 4df66c40b08931eb224964f12decbb0f660cf932 (patch) | |
tree | d50cbac660ed4085f7477a56beb248abfdc90221 /sequencer.h | |
parent | 2c58483a5983d1313f674e2ba32b3bac24df6911 (diff) | |
download | git-4df66c40b08931eb224964f12decbb0f660cf932.tar.gz |
rebase -i: rewrite checkout_onto() in C
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 <alban.gruin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.h')
-rw-r--r-- | sequencer.h | 3 |
1 files changed, 3 insertions, 0 deletions
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) |