diff options
author | René Scharfe <l.s.r@web.de> | 2017-12-25 18:43:37 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-28 13:50:05 -0800 |
commit | 07f7d55a346f0eb73a358736ce065f8c08b46452 (patch) | |
tree | bf14544942a058b19df3530c5eee5eaa717114ad /t/t4013/diff.diff_--raw_--abbrev=4_initial | |
parent | Prepare for 2.15.2 (diff) | |
download | tgif-07f7d55a346f0eb73a358736ce065f8c08b46452.tar.xz |
commit: avoid allocation in clear_commit_marks_many()
Pass the entries of the commit array directly to clear_commit_marks_1()
instead of adding them to a commit_list first. The function clears the
commit and any first parent without allocation; only higher numbered
parents are added to a list for later treatment. This change extends
that optimization to clear_commit_marks_many().
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_--raw_--abbrev=4_initial')
0 files changed, 0 insertions, 0 deletions