summaryrefslogtreecommitdiff
path: root/version.h
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2017-09-25 10:00:05 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-25 18:02:45 +0900
commit6a9bc4034ab59a2d241151f9025c07e62178ad95 (patch)
tree61151ba0ac5a51c66a298dfd58e14d5e141e94a8 /version.h
parentread_packed_refs(): make parsing of the header line more robust (diff)
downloadtgif-6a9bc4034ab59a2d241151f9025c07e62178ad95.tar.xz
read_packed_refs(): read references with minimal copying
Instead of copying data from the `packed-refs` file one line at time and then processing it, process the data in place as much as possible. Also, instead of processing one line per iteration of the main loop, process a reference line plus its corresponding peeled line (if present) together. Note that this change slightly tightens up the parsing of the `packed-refs` file. Previously, the parser would have accepted multiple "peeled" lines for a single reference (ignoring all but the last one). Now it would reject that. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'version.h')
0 files changed, 0 insertions, 0 deletions