]> git.ipfire.org Git - thirdparty/git.git/commit
fetch: move output format into `display_state`
authorPatrick Steinhardt <ps@pks.im>
Mon, 20 Mar 2023 12:35:24 +0000 (13:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Mar 2023 18:02:43 +0000 (11:02 -0700)
commit5cab51ff7156edca8cb9eba30205efa11900e49c
tree9280f2e3b0bd55e3741d3bce0120ca3a46d7edea
parentce9636d645714974e5f7e1e9abc65fa57186b147
fetch: move output format into `display_state`

The git-fetch(1) command supports printing references either in "full"
or "compact" format depending on the `fetch.ouput` config key. The
format that is to be used is tracked in a global variable.

De-globalize the variable by moving it into the `display_state`
structure.

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