From: Junio C Hamano Date: Tue, 08 Feb 2022 18:09:51 GMT Subject: Re: [PATCH v2 2/2] cat-file: add --batch-command mode Message-ID: In-Reply-To: <20220208175651.155629-1-jonathantanmy@google.com> Jonathan Tan writes: > There is overlap, yes. I'm not sure of the best way to resolve it, > though. John mentions a substantial reduction ("roughly half") of Git > processes [1], and if they foresee needing to access things other than > object info and contents, it might be better to start with something > more extensible, like my proposal for a specific batch command. 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.