Thread (1 message) 1 message, 1 author, 2019-03-14

Re: [PATCH 4/4] get_oid(): when an object was not found, try harder

From: Junio C Hamano <hidden>
Date: 2019-03-14 03:49:46

Jeff King [off-list ref] writes:
quoted
 1. is reprepare_packed_git() a bit too heavy-weight, if the only
    thing we are addressing is the loose-object cache going stale?
It's not the only thing we are addressing. :)

Try this:
Yes, I knew about repacking.  I was alluding to the overly heavy
reference to loose-object-cache in the log message ;-).
quoted
 2. is there a way to cleanly avoid the three-line duplicate?
Yeah, as you noted, I think the boilerplate is worse than the
duplication. The most readable alternative to me is a separate function,
like:
...
But what I find particularly ugly is not just that it's more lines, but
that the assumptions and outputs of do_get_short_oid() aren't
particularly clear.
Yeah, exactly.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help