]> git.99rst.org Git - git.git/commit
repo: add the field layout.shallow
authorLucas Seiki Oshiro <redacted>
Sat, 16 Aug 2025 22:46:02 +0000 (19:46 -0300)
committerJunio C Hamano <redacted>
Sun, 17 Aug 2025 16:13:40 +0000 (09:13 -0700)
commite52cd654c9b21a98817578b8fd668da99053ee2b
tree14ed20304d88d4ceca456dc74bd92981d082621b
parentacf2669b542d0a8daa505923e52d314bbae4a237
repo: add the field layout.shallow

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

The flag `--is-shallow-repository` from git-rev-parse is used for
retrieving whether the repository is shallow. This way, it is used for
querying repository metadata, fitting in the purpose of git-repo-info.

Then, add a new field `layout.shallow` to the git-repo-info subcommand
containing that information.

Helped-by: Phillip Wood <redacted>
Helped-by: Junio C Hamano <redacted>
Helped-by: Justin Tobler <redacted>
Helped-by: Eric Sunshine <redacted>
Mentored-by: Karthik Nayak <redacted>
Mentored-by: Patrick Steinhardt <redacted>
Signed-off-by: Lucas Seiki Oshiro <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-repo.adoc
builtin/repo.c
t/t1900-repo.sh
git clone https://git.99rst.org/PROJECT