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>
size_t items_nr;
size_t items_alloc;
struct strbuf *buf;
- struct commit *commit;
struct string_list refs_to_oids;
};
ctx.items[ctx.items_nr++] = todo_list->items[i++];
if (item->commit) {
- ctx.commit = item->commit;
add_decorations_to_list(item->commit, &ctx);
}
}