diff options
| author | Patrick Steinhardt <ps@pks.im> | 2023-03-20 13:35:20 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-03-20 11:02:43 -0700 |
| commit | ce9636d645714974e5f7e1e9abc65fa57186b147 (patch) | |
| tree | acd0f09ee8631daf8f991b18be927894579e3ebc /unix-socket.c | |
| parent | Git 2.40 (diff) | |
| download | git-ce9636d645714974e5f7e1e9abc65fa57186b147.tar.gz git-ce9636d645714974e5f7e1e9abc65fa57186b147.zip | |
fetch: move reference width calculation into `display_state`
In order to print references in proper columns we need to calculate the
width of the reference column before starting to print the references.
This is done with the help of a global variable `refcol_width`.
Refactor the code to instead use a new structure `display_state` that
contains the computed width and plumb it through the stack as required.
This is only the first step towards de-globalizing the state required to
print references.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unix-socket.c')
0 files changed, 0 insertions, 0 deletions
