sequencer: remove todo_add_branch_context.commit
The 'commit' field in 'struct todo_add_branch_context' is unused. It's written to, but never read from. add_decorations_to_list() gets the commit passed to it explicitly as an argument. Signed-off-by: Abhinav Gupta <mail@abhinavg.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Abhinav Gupta committed
May 11, 2026 at 12:21 UTC
61f711de4b0fda3464ef54637b3600a6a5aab214
1 file changed
-2
sequencer.c
-2
@@ -6409,7 +6409,6 @@ struct todo_add_branch_context {
6409
size_t items_nr;
6410
size_t items_alloc;
6411
struct strbuf *buf;
6412
- struct commit *commit;
6412
struct string_list refs_to_oids;
6413
};
6414
@@ -6498,7 +6497,6 @@ static int todo_list_add_update_ref_commands(struct todo_list *todo_list)
6497
ctx.items[ctx.items_nr++] = todo_list->items[i++];
6498
6499
if (item->commit) {
6501
- ctx.commit = item->commit;
6500
add_decorations_to_list(item->commit, &ctx);
6501
}
6502
}