]> git.ipfire.org Git - thirdparty/git.git/commit
repo: add the field references.format
authorLucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Thu, 7 Aug 2025 15:02:36 +0000 (12:02 -0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Aug 2025 22:23:24 +0000 (15:23 -0700)
commitd7043982681026858b784b3e7dddcba6493bf3e8
tree18f158773f20bee66230f58c57047116d85e9d36
parentef3834271f4aa63a8908f05f7d605bb3f30fe7a1
repo: add the field references.format

This commit is part of the series that introduces the new subcommand
git-repo-info.

The flag `--show-ref-format` from git-rev-parse is used for retrieving
the reference format (i.e. `files` or `reftable`). This way, it is
used for querying repository metadata, fitting in the purpose of
git-repo-info.

Add a new field `references.format` to the repo-info subcommand
containing that information.

Helped-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Justin Tobler <jltobler@gmail.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Mentored-by: Karthik Nayak <karthik.188@gmail.com>
Mentored-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-repo.adoc
builtin/repo.c
t/meson.build
t/t1900-repo.sh [new file with mode: 0755]