Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/4] peel_ref: use faster deref_tag_noverify

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:56

Jeff King [off-list ref] writes:
When we are asked to peel a ref to a sha1, we internally call
deref_tag, which will recursively parse each tagged object
until we reach a non-tag. This has the benefit that we will
verify our ability to load and parse the pointed-to object.

However, there is a performance downside: we may not need to
load that object at all (e.g., if we are listing peeled
simply listing peeled refs),...
Both correct.

I checked the existing callsites and nobody seems to assume that it
can use the pointed-to object without checking because peel_ref has
already checked, so it makes sense.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help