[PATCH 0/2] peel_ref cleanups changes
From: Jeff King <hidden>
Date: 2016-06-15 22:57:09
On Mon, May 06, 2013 at 10:43:13PM -0400, Jeff King wrote:
I hooked the refreshing into get_packed_refs, since then all callers get it for free. It makes me a little nervous, though, just in case some caller really cares about calling get_packed_refs but not having the list of packed-refs change during the call. peel_ref looks like such a function, but isn't, for reasons I'll explain in a followup patch.
I thought I would need the cleanups below for peel_ref, but it turns out that the middle chunk of the function is never exercised. They conflict textually with Michael's mh/packed-refs-various topic, so I think it may make sense to just rebase them on top of that. [1/2]: peel_ref: rename "sha1" argument to "peeled" [2/2]: peel_ref: refactor for safety with simultaneous update -Peff