repo-info: declare the repo-info command
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
Currently, git rev-parse covers a wide range of functionality not
directly related to parsing revisions, as its name says. Over time,
many features like parsing datestrings, options, paths, and others
were added to it because there wasn't a more appropriated command
to place them.
Create a new Git subcommand called repo-info. git repo-info will
bring the functionality of retrieving repository-related information
currently returned by rev-parse, displaying them in
machine-readable formats (JSON or a key=value linewise format).
Edited by Lucas Seiki Oshiro