aboutsummaryrefslogtreecommitdiffstats
path: root/fetch-pack.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 /fetch-pack.c
parentline-log: avoid unnecessary tree diffs when processing merge commits (diff)
downloadgit-9df27c258edf89ea8ea0472a0a9c260e026f197f.tar.gz
git-9df27c258edf89ea8ea0472a0a9c260e026f197f.zip
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 'fetch-pack.c')
0 files changed, 0 insertions, 0 deletions