Thread (178 messages) 178 messages, 10 authors, 2025-08-16

Re: [GSoC RFC PATCH v2 1/7] repo-info: declare the repo-info command

From: Karthik Nayak <hidden>
Date: 2025-06-20 07:56:19

Lucas Seiki Oshiro [off-list ref] writes:
Create a new Git subcommand called repo-info. `git repo-info` will query
metadata from the current repository and outputs it as JSON or plaintext.

Also add entries for this new command in:

- the build files (Makefile and meson.build)
- builtin.h
- git.c
- .gitignore

In option parsing, use PARSE_OPT_KEEP_UNKNOWN_OPT to allow the users
specify after the flags the information that they want to retrieve.
Something I would really recommend in all the commits is to be a lot
more descriptive about _why_ are we even making these changes.

In this case, it would be great to mention about 'git-rev-parse(1)' and
the motivation of adding this new command. That would provide some much
needed context about why we are even adding this new command. Also worth
mentioning is why we plan to output in JSON or plaintext.

- Karthik

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help