]> Kevux Git Server - rit/commit
commit: add commit_stack_grow()
authorRené Scharfe <l.s.r@web.de>
Wed, 24 Dec 2025 17:03:25 +0000 (18:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Dec 2025 23:29:28 +0000 (08:29 +0900)
commit958a816794b9382fe90585b674ee8b96ed6aa8bf
tree5698154839c6841e77ceed2e46e58b041e13cfe8
parent506a7b66908eb5c3898a3eadbd402308f5b43cf8
commit: add commit_stack_grow()

Add a function for increasing the capacity of a commit_stack.  It is
useful for reducing reallocations when the target size is known in
advance.

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