Re: [PATCH 2/3] untracked-cache: simplify parsing by dropping "next"

2019-04-19 Thread Junio C Hamano
Jeff King writes: > 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

[PATCH 2/3] untracked-cache: simplify parsing by dropping "next"

2019-04-18 Thread Jeff King
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 (