summaryrefslogtreecommitdiff
path: root/t/t5515/refs.br-branches-one
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2019-04-18 17:17:38 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-04-19 14:30:58 +0900
commitb511d6d569ce8baee888700ebd12f82d991a5250 (patch)
treec10ff19817c3c2ae8b06c5bc08a676dd663305d7 /t/t5515/refs.br-branches-one
parentuntracked-cache: be defensive about missing NULs in index (diff)
downloadtgif-b511d6d569ce8baee888700ebd12f82d991a5250.tar.xz
untracked-cache: simplify parsing by dropping "next"
When we parse an on-disk untracked cache, we have two pointers, "data" and "next". As we parse, we point "next" to the end of an element, and then later update "data" to match. But we actually don't need two pointers. Each parsing step can just update "data" directly from other variables we hold (and we don't have to worry about bailing in an intermediate state, since any parsing failure causes us to immediately discard "data" and return). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/refs.br-branches-one')
0 files changed, 0 insertions, 0 deletions