]> git.ipfire.org Git - thirdparty/git.git/commit
ref-filter.h: add max_count and omit_empty to ref_format
authorVictoria Dye <vdye@github.com>
Tue, 14 Nov 2023 19:53:50 +0000 (19:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Nov 2023 05:02:59 +0000 (14:02 +0900)
commit9d4fcfe1ff5b901f47f8226d078d22370bb955be
tree80cf79b021c0e117f95659c647973f01d399d22f
parent56d26ade97135614ccc60cb215d6c9cb22babfb1
ref-filter.h: add max_count and omit_empty to ref_format

Add an internal 'array_opts' struct to 'struct ref_format' containing
formatting options that pertain to the formatting of an entire ref array:
'max_count' and 'omit_empty'. These values are specified by the '--count'
and '--omit-empty' options, respectively, to 'for-each-ref'/'tag'/'branch'.
Storing these values in the 'ref_format' will simplify the consolidation of
ref array formatting logic across builtins in later patches.

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
builtin/for-each-ref.c
builtin/tag.c
ref-filter.h