]> git.ipfire.org Git - thirdparty/git.git/commit
fetch: introduce `display_format` enum
authorPatrick Steinhardt <ps@pks.im>
Wed, 10 May 2023 12:34:24 +0000 (14:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 May 2023 17:35:25 +0000 (10:35 -0700)
commit50957937f92691215492f4c62dd0a18e39f17a2e
treeb7a19392a285de2b0f67e67587215712a1b97bcd
parent9539638a2bbc88717547585ae660bba3bbfaef8b
fetch: introduce `display_format` enum

We currently have two different display formats in git-fetch(1) with the
"full" and "compact" formats. This is tracked with a boolean value that
simply denotes whether the display format is supposed to be compacted
or not. This works reasonably well while there are only two formats, but
we're about to introduce another format that will make this a bit more
awkward to use.

Introduce a `enum display_format` that is more readily extensible.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c