Re: [PATCH v2 2/2] cat-file: add --batch-command mode
- From
- Jonathan Tan <jonathantanmy@google.com>
- Date
- Feb 9, 2022, 00:11 UTC
- Message-ID
- <20220209001139.326834-1-jonathantanmy@google.com>
- In-Reply-To
- <xmqq5yppdyc0.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
> I agree that it would be ideal to have just one way generic and > extensible enough. I do not know if there are much difference in > that area between the two approaches, though. The RFC I saw did > look more complex and rigidly specified with framing and such, but > that is only the syntax part---in the way in which interaction > between two processes happen, I didn't quite see fundamental > differences. I'd expect it wouldn't be too much trouble to add new > commands to code written using either approach (although I haven't > seen yours yet ;-). > > Thanks.
It is similar to this approach, except: - the approach I sent out uses pkt-line, which might be difficult to retrofit to cat-file if we need it - in the future, we want the Git side to be able to initiate requests - (possibly minor) it may be confusing if we add functionality to cat-file that is not about reading objects
Other than that, yes, they are similar.