]> git.ipfire.org Git - thirdparty/git.git/commit
repo: add a default output format to enum output_format
authorLucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Tue, 9 Dec 2025 19:36:02 +0000 (16:36 -0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Dec 2025 05:43:17 +0000 (14:43 +0900)
commit240208233c496ef6013cc8aafd3db8c041cfa75d
tree27df5cc8ba4c70acfd188cebbd73dfc0b09d1416
parenta92df5a0de1fc804f8c6917b2c95aa332cd1e8b5
repo: add a default output format to enum output_format

Add a `FORMAT_DEFAULT` value to `enum output_format`. Change the initial
value of `format` to `FORMAT_DEFAULT` in cmd_repo_info, indicating that
the initial value hasn't been changed. Also map the string "default" to
this new value in `parse_format_cb`, allowing future patches to add
support to --format=default.

Signed-off-by: Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repo.c