summaryrefslogtreecommitdiff
path: root/commit-graph.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2025-02-23 09:26:04 +0100
committerJunio C Hamano <gitster@pobox.com>2025-02-24 08:51:18 -0800
commit1ca727f230d83db20952f8ae7ce2f1749d744334 (patch)
tree8d2d35e04f4d5295504df886f1c3a1f00a112255 /commit-graph.c
parent2d2a71ce85026edcc40f469678a1035df0dfcf57 (diff)
commit: avoid parent list buildup in clear_commit_marks_many()
clear_commit_marks_1() clears the marks of the first parent and its first parent and so on, and saves the higher numbered parents in a list for later. There is no benefit in keeping that list growing with each handled commit. Clear it after each run to reduce peak memory usage. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions