diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-02-24 10:33:03 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-24 15:59:27 -0800 |
commit | 2dd75f123d959f185404451ce89c5158debde0bd (patch) | |
tree | a9e55f762e18e1cd0c26ceb797e95946ae5cb9ba /t/t6120-describe.sh | |
parent | archive-*.c: use designated initializers for "struct archiver" (diff) | |
download | tgif-2dd75f123d959f185404451ce89c5158debde0bd.tar.xz |
userdiff.c: use designated initializers for "struct userdiff_driver"
Change the "struct userdiff_driver" assignmentns to use designated
initializers, but let's keep the PATTERNS() and IPATTERN() convenience
macros to avoid churn, but have them defined in terms of designated
initializers.
For the "driver_true" and "driver_false" let's have the compiler
implicitly initialize most of the fields, but let's leave a redundant
".binary = 0" for "driver_true" to make it obvious that it's the
opposite of the the ".binary = 1" for "driver_false".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6120-describe.sh')
0 files changed, 0 insertions, 0 deletions