pack-objects: fix comment of reused_chunk.difference

As record_reused_object(offset, offset - hashfile_total(out)) said, reused_chunk.difference should be the offset of original packfile minus the offset of the generated packfile. But the comment presented an opposite way. Signed-off-by: Han Xin <hanxin.hx@alibaba-inc.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Han Xin committed Mar 23, 2021 at 11:20 UTC bf12013f1ae3e38b7456e1524eb484baee03fbb2
1 file changed +2 -2
builtin/pack-objects.c
+2 -2
@@ -815,8 +815,8 @@ static struct reused_chunk {
815 /* The offset of the first object of this chunk in the original
816 * packfile. */
817 off_t original;
818 - /* The offset of the first object of this chunk in the generated
819 - * packfile minus "original". */
818 + /* The difference for "original" minus the offset of the first object of
819 + * this chunk in the generated packfile. */
820 off_t difference;
821 } *reused_chunks;
822 static int reused_chunks_nr;