Re: [PATCH 2/4] format-rev: factor option variables into a struct
"Kristoffer Haugsbakk" <[email protected]>
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Aug 13, 2026, at 20:21, Junio C Hamano wrote: > [email protected] writes: >> From: Kristoffer Haugsbakk <[email protected]> >>[snip] >> - const char *format = NULL; >> + struct format_rev_data data = { >> + NULL, NULL, 0, 0, STRING_LIST_INIT_NODUP >> + }; > > It will make it easier to maintain if you used designated > initializer here, i.e., > > struct format_rev_data data = { > .notes = STRING_LIST_INIT_NODUP, > }; > That is excellent. Thanks! >[snip]