4 const char *git_path_seq_dir(void);
6 #define APPEND_SIGNOFF_DEDUP (1u << 0)
11 REPLAY_INTERACTIVE_REBASE
15 enum replay_action action
;
23 int allow_rerere_auto
;
25 int allow_empty_message
;
26 int keep_redundant_commits
;
36 size_t xopts_nr
, xopts_alloc
;
38 /* Only used by REPLAY_NONE */
39 struct rev_info
*revs
;
41 #define REPLAY_OPTS_INIT { -1 }
43 int sequencer_pick_revisions(struct replay_opts
*opts
);
44 int sequencer_continue(struct replay_opts
*opts
);
45 int sequencer_rollback(struct replay_opts
*opts
);
46 int sequencer_remove_state(struct replay_opts
*opts
);
48 int sequencer_make_script(int keep_empty
, FILE *out
,
49 int argc
, const char **argv
);
51 int transform_todo_ids(int shorten_ids
);
52 int check_todo_list(void);
53 int skip_unnecessary_picks(void);
54 int rearrange_squash(void);
56 extern const char sign_off_header
[];
58 void append_signoff(struct strbuf
*msgbuf
, int ignore_footer
, unsigned flag
);
59 void append_conflicts_hint(struct strbuf
*msgbuf
);
60 int git_sequencer_config(const char *k
, const char *v
, void *cb
);
62 enum commit_msg_cleanup_mode
{
63 COMMIT_MSG_CLEANUP_SPACE
,
64 COMMIT_MSG_CLEANUP_NONE
,
65 COMMIT_MSG_CLEANUP_SCISSORS
,
66 COMMIT_MSG_CLEANUP_ALL
69 int message_is_empty(const struct strbuf
*sb
,
70 enum commit_msg_cleanup_mode cleanup_mode
);
71 int template_untouched(const struct strbuf
*sb
, const char *template_file
,
72 enum commit_msg_cleanup_mode cleanup_mode
);
73 int update_head_with_reflog(const struct commit
*old_head
,
74 const struct object_id
*new_head
,
75 const char *action
, const struct strbuf
*msg
,
77 void commit_post_rewrite(const struct commit
*current_head
,
78 const struct object_id
*new_head
);
80 #define SUMMARY_INITIAL_COMMIT (1 << 0)
81 #define SUMMARY_SHOW_AUTHOR_DATE (1 << 1)
82 void print_commit_summary(const char *prefix
, const struct object_id
*oid
,