]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'rj/sequencer-sign-off-header-static'
authorJunio C Hamano <gitster@pobox.com>
Thu, 14 Feb 2019 02:18:41 +0000 (18:18 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Feb 2019 02:18:41 +0000 (18:18 -0800)
Code clean-up.

* rj/sequencer-sign-off-header-static:
  sequencer: make sign_off_header a file local symbol

1  2 
sequencer.c
sequencer.h

diff --cc sequencer.c
Simple merge
diff --cc sequencer.h
index 93e891309bb7982c283c77e8950ba8848fdd7d2b,e025deb007a57a02c4a3f8122cfd1a84a601d326..4d505b3590ed158600844cfe3889112b5da4e511
@@@ -93,31 -74,17 +93,29 @@@ int sequencer_remove_state(struct repla
   * commits should be rebased onto the new base, this flag needs to be passed.
   */
  #define TODO_LIST_REBASE_COUSINS (1U << 4)
 -int sequencer_make_script(FILE *out, int argc, const char **argv,
 +int sequencer_make_script(struct repository *repo, FILE *out,
 +                        int argc, const char **argv,
                          unsigned flags);
  
 -int sequencer_add_exec_commands(const char *command);
 -int transform_todos(unsigned flags);
 -int check_todo_list(void);
 -int skip_unnecessary_picks(void);
 -int rearrange_squash(void);
 +int sequencer_add_exec_commands(struct repository *r, const char *command);
 +int transform_todos(struct repository *r, unsigned flags);
 +enum missing_commit_check_level get_missing_commit_check_level(void);
 +int check_todo_list(struct repository *r);
 +int complete_action(struct repository *r, struct replay_opts *opts, unsigned flags,
 +                  const char *shortrevisions, const char *onto_name,
 +                  const char *onto, const char *orig_head, const char *cmd,
 +                  unsigned autosquash);
 +int rearrange_squash(struct repository *r);
  
- extern const char sign_off_header[];
 -void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag);
 -void append_conflicts_hint(struct strbuf *msgbuf);
 +/*
 + * Append a signoff to the commit message in "msgbuf". The ignore_footer
 + * parameter specifies the number of bytes at the end of msgbuf that should
 + * not be considered at all. I.e., they are not checked for existing trailers,
 + * and the new signoff will be spliced into the buffer before those bytes.
 + */
 +void append_signoff(struct strbuf *msgbuf, size_t ignore_footer, unsigned flag);
 +
 +void append_conflicts_hint(struct index_state *istate, struct strbuf *msgbuf);
  int message_is_empty(const struct strbuf *sb,
                     enum commit_msg_cleanup_mode cleanup_mode);
  int template_untouched(const struct strbuf *sb, const char *template_file,