From: Lucas Seiki Oshiro Date: Wed, 22 Oct 2025 20:34:43 GMT Subject: Re: [PATCH v6 6/7] builtin/repo: add keyvalue and nul format for structure stats Message-ID: In-Reply-To: <20251021182601.2687284-7-jltobler@gmail.com> > All repository structure stats are outputted in a human-friendly table > form. This format is not suitable for machine parsing. Add a --format > option that supports three output modes: `table`, `keyvalue`, and `nul`. > The `table` mode is the default format and prints the same table output > as before. Now I'm thinking... What about making --format a flag for git-repo, working for both git-repo-info and git-repo-structure? It doesn't seem to be hard to make git-repo-info compatible with your table format and it looks to me that it would make git-repo more consistent. I'm also wondering if git-repo-info use this table format by default. git-repo-info and git-repo-structure are completely different under the hood, but their interface are very similar and it seems to be that they could be more closer to each other. > "git repo info [--format=(keyvalue|nul)] [-z] [...]", > - "git repo structure", > + "git repo structure [--format=(table|keyvalue|nul)]", Do you intend to add a key parameter like in git-repo-info? This way, we could run: git repo structure references.branches.count references.tags.count and it would return only the branch and tag count.