Skip to content

Commit aae9323

Browse files
committed
sequencer: restrict scope of a formerly public function
The function to add the `exec` commands to the todo list only needed to be public API because it was not only used internally by the sequencer, but also by `git rebase --preserve-merges`. Now that that mode has been removed, we no longer need that function to be scoped publicly. Helped-by: Alban Gruin <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5bb04ea commit aae9323

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

sequencer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5387,8 +5387,8 @@ int sequencer_make_script(struct repository *r, struct strbuf *out, int argc,
53875387
* Add commands after pick and (series of) squash/fixup commands
53885388
* in the todo list.
53895389
*/
5390-
void todo_list_add_exec_commands(struct todo_list *todo_list,
5391-
struct string_list *commands)
5390+
static void todo_list_add_exec_commands(struct todo_list *todo_list,
5391+
struct string_list *commands)
53925392
{
53935393
struct strbuf *buf = &todo_list->buf;
53945394
size_t base_offset = buf->len;

sequencer.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ int sequencer_remove_state(struct replay_opts *opts);
160160
int sequencer_make_script(struct repository *r, struct strbuf *out, int argc,
161161
const char **argv, unsigned flags);
162162

163-
void todo_list_add_exec_commands(struct todo_list *todo_list,
164-
struct string_list *commands);
165163
int complete_action(struct repository *r, struct replay_opts *opts, unsigned flags,
166164
const char *shortrevisions, const char *onto_name,
167165
struct commit *onto, const struct object_id *orig_head,

0 commit comments

Comments
 (0)