]> git.ipfire.org Git - thirdparty/git.git/commit
line-log: get rid of the parents array in process_ranges_merge_commit()
authorSZEDER Gábor <szeder.dev@gmail.com>
Sun, 24 Aug 2025 19:06:42 +0000 (21:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Aug 2025 15:30:26 +0000 (08:30 -0700)
commit9df27c258edf89ea8ea0472a0a9c260e026f197f
tree7735452668b1d765770ea9336cfdfae3a8ebef0d
parenta3540ed20efad4e1aebb71edac2fc74604f2122e
line-log: get rid of the parents array in process_ranges_merge_commit()

We can easily iterate through the parents of a merge commit without
turning the list of parents into a dynamically allocated array of
parents, so let's do so.  This way we can avoid a memory allocation
for each processed merge commit, though its effect on runtime seems to
be unmeasurable.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
line-log.c