author | Nicolas Pitre <nico@cam.org> | |
Sat, 8 Dec 2007 05:00:08 +0000 (00:00 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 8 Dec 2007 11:38:35 +0000 (03:38 -0800) | ||
commit | b904166ccb67d80491fad9d4f5ec42d241975f37 | |
tree | 2e32c39e3a16d1800f86acf662c61ad4d220a46e | tree | snapshot |
parent | b7a28f7827ba1043501fe357cbbdff3f2e357143 | commit | diff |
pack-objects: reverse the delta search sort list
It is currently sorted and then walked backward. Not only this doesn't
feel natural for my poor brain, but it would make the next patch less
obvious as well.
So reverse the sort order, and reverse the list walking direction,
which effectively produce the exact same end result as before.
Also bring the relevant comment nearer the actual code and adjust it
accordingly, with minor additional clarifications.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
It is currently sorted and then walked backward. Not only this doesn't
feel natural for my poor brain, but it would make the next patch less
obvious as well.
So reverse the sort order, and reverse the list walking direction,
which effectively produce the exact same end result as before.
Also bring the relevant comment nearer the actual code and adjust it
accordingly, with minor additional clarifications.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c | diff | blob | history |