]> git.ipfire.org Git - thirdparty/git.git/commit
struct snapshot: store `start` rather than `header_len`
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 24 Jan 2018 11:14:11 +0000 (12:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Jan 2018 20:55:26 +0000 (12:55 -0800)
commit4a2854f77cc913fafc7f3191a61b343280979643
tree57d604f72493ca03e6da89f7bb15f90b773012b3
parent3013dff8662eae06457fe6e5348dfe2270810ab2
struct snapshot: store `start` rather than `header_len`

Store a pointer to the start of the actual references within the
`packed-refs` contents rather than storing the length of the header.
This is more convenient for most users of this field.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/packed-backend.c