Re: [PATCH v2 1/1] builtin/pack-objects.c: avoid iterating all refs
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Jan 20, 2021, 16:19 UTC
- Message-ID
- <YAhYHUcdynbWyhwo@nand.local>
- In-Reply-To
- <YAhXw9Gvn5Pyvacq@coredump.intra.peff.net>
On Wed, Jan 20, 2021 at 11:18:11AM -0500, Jeff King wrote:
> So I think both the existing and the new calls using for_each_tag_ref() > are OK here.
Indeed, I followed the same trail of calls as you did and reached the same conclusion, but didn't write any of it down here since I thought it wasn't worthwhile.
But, yes, I agree that both are safe.
Thanks, Taylor