]> git.ipfire.org Git - thirdparty/git.git/commit
log: use commit_stack
authorRené Scharfe <l.s.r@web.de>
Wed, 24 Dec 2025 17:03:15 +0000 (18:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Dec 2025 23:29:27 +0000 (08:29 +0900)
commit052efdd60f860dc5bc50a92f10911402d9cc71b4
tree19e3739bb4be98685f8572b5335592fd01fb986a
parentd8a17ef09b8d9fdeb7d22cbc926cbebf3d8a58c9
log: use commit_stack

Calling commit_stack_push() to add commits is simpler and more efficient
than using REALLOC_ARRAY.  Calling commit_stack_pop() to consume them in
LIFO order is also a tad simpler than calculating the array index from
the end.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c