diff options
| author | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2023-08-09 19:15:32 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-08-09 13:52:11 -0700 |
| commit | 82dc42cbd1c4576c2fd879996d9e73a86434769a (patch) | |
| tree | 436021cb5e3d14ae044207855b7f8c1dabe54f6a /cache-tree.h | |
| parent | a82fb66fed250e16d3010c75404503bea3f0ab61 (diff) | |
sequencer: simplify allocation of result array in todo_list_rearrange_squash()
The operation doesn't change the number of elements in the array, so we do
not need to allocate the result piecewise.
This moves the re-assignment of todo_list->alloc at the end slighly up,
so it's right after the newly added assert which also refers to `nr`
(and which indeed should come first). Also, the value is more likely to
be still in a register at that point.
Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache-tree.h')
0 files changed, 0 insertions, 0 deletions
