diff options
| author | SZEDER Gábor <szeder.dev@gmail.com> | 2025-08-24 21:06:42 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-08-25 08:30:26 -0700 |
| commit | 9df27c258edf89ea8ea0472a0a9c260e026f197f (patch) | |
| tree | 7735452668b1d765770ea9336cfdfae3a8ebef0d /t/unit-tests/lib-oid.c | |
| parent | a3540ed20efad4e1aebb71edac2fc74604f2122e (diff) | |
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>
Diffstat (limited to 't/unit-tests/lib-oid.c')
0 files changed, 0 insertions, 0 deletions
