summaryrefslogtreecommitdiff
path: root/builtin/range-diff.c
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2025-08-24 21:06:42 +0200
committerJunio C Hamano <gitster@pobox.com>2025-08-25 08:30:26 -0700
commit9df27c258edf89ea8ea0472a0a9c260e026f197f (patch)
tree7735452668b1d765770ea9336cfdfae3a8ebef0d /builtin/range-diff.c
parenta3540ed20efad4e1aebb71edac2fc74604f2122e (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 'builtin/range-diff.c')
0 files changed, 0 insertions, 0 deletions