sequencer.hon commit unpack-trees: move checkout state into check_updates (30ac275)
   1#ifndef SEQUENCER_H
   2#define SEQUENCER_H
   3
   4const char *git_path_seq_dir(void);
   5
   6#define APPEND_SIGNOFF_DEDUP (1u << 0)
   7
   8enum replay_action {
   9        REPLAY_REVERT,
  10        REPLAY_PICK
  11};
  12
  13struct replay_opts {
  14        enum replay_action action;
  15
  16        /* Boolean options */
  17        int edit;
  18        int record_origin;
  19        int no_commit;
  20        int signoff;
  21        int allow_ff;
  22        int allow_rerere_auto;
  23        int allow_empty;
  24        int allow_empty_message;
  25        int keep_redundant_commits;
  26
  27        int mainline;
  28
  29        char *gpg_sign;
  30
  31        /* Merge strategy */
  32        char *strategy;
  33        char **xopts;
  34        size_t xopts_nr, xopts_alloc;
  35
  36        /* Only used by REPLAY_NONE */
  37        struct rev_info *revs;
  38};
  39#define REPLAY_OPTS_INIT { -1 }
  40
  41int sequencer_pick_revisions(struct replay_opts *opts);
  42int sequencer_continue(struct replay_opts *opts);
  43int sequencer_rollback(struct replay_opts *opts);
  44int sequencer_remove_state(struct replay_opts *opts);
  45
  46extern const char sign_off_header[];
  47
  48void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag);
  49void append_conflicts_hint(struct strbuf *msgbuf);
  50
  51#endif