]> git.99rst.org Git - git.git/commit
builtin/repack.c: assign pack split later
authorTaylor Blau <redacted>
Fri, 5 Mar 2021 15:21:50 +0000 (10:21 -0500)
committerJunio C Hamano <redacted>
Fri, 5 Mar 2021 19:33:52 +0000 (11:33 -0800)
commit13d746a303592068826824b30c47941fb328c8a7
tree4c401453fa96d31cec741259c30835b5a58d94c5
parentdab324773422f38f8572185127a268813342805e
builtin/repack.c: assign pack split later

To determine the where to place the split when repacking with the
'--geometric' option, split_pack_geometry() assigns the "split" variable
and then decrements it in a loop.

It would be equivalent (and more readable) to assign the split to the
loop position after exiting the loop, so do that instead.

Suggested-by: Junio C Hamano <redacted>
Signed-off-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/repack.c
git clone https://git.99rst.org/PROJECT