Re: [GSoC RFC PATCH 0/5] repo-info: add new command for retrieving repository info
- From
Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
- Date
- Jun 19, 2025, 01:44 UTC
- Message-ID
- <110154E5-666B-4093-ABB0-ABAF2E3E107D@gmail.com>
- In-Reply-To
- <xmqqfrfzz4xq.fsf@gitster.g>
Show 6 quoted lines
> But I dunno. When asking a single item from the command line, it is > perfectly fine to respond with a single value, but when you are > showing multiple items (especially without any "give me this and > that item and nothing else" specified on the command line, in which > case nobody knows in what order the value is given), I think the > calling script almost always wants to get key-value pairs.
Ok! I'm polishing my v2 and I expect to sent it soon. I already changed the output to that format.
> Also are you planning on later adding a long-running server mode > like "cat-file --batch-command"?
To be honest, I didn't know about that feature of cat-file until your comment. It seems to be a nice feature to add, entering the keys and printing the corresponding values.
I'm adding a --batch-command feature and the removal of the dependency on the_repository to a todo list to be considered in a future iteration on this command, after delivering its basic functionality.
Thanks!