Re: [PATCHv3 3/7] show: honor --textconv for blobs
- From
Jeff King <peff@peff.net>
- Date
- May 11, 2013, 00:25 UTC
- Message-ID
- <20130511002504.GA4849@sigill.intra.peff.net>
- In-Reply-To
- <7vfvxu1zla.fsf@alter.siamese.dyndns.org>
On Fri, May 10, 2013 at 11:04:01AM -0700, Junio C Hamano wrote:
Show 14 quoted lines
> One thing to notice is that those accessing rev->pending before > calling prepare_revision_walk(), as opposed to those receiving > objects in rev->commits via get_revision(), are the only ones that > care about the context and wants to act differently depending on > where these came from and how they were specified. > > That suggests at least two possibilities to me: > > - Perhaps we can place the context in rev->pending and clear them > when prepare_revision_walk() moves them to rev->commits, without > introducing rev->keep_object_context? > > - Perhaps instead of extending object-array, we can move this kind > of information to rev_cmdline and enrich that structure?
Without looking too closely to see whether it is feasible, I would think the latter would end up being much more elegant, since I think it already deals with some allocation issues already.
-Peff