Subject: Re: [PATCH v7 2/4] notes.c: cleanup for "designated init"

From: Junio C Hamano <[email-masked]>
Date: Wed, 29 Mar 2023 15:17:29 -0700

Teng Long <[email-masked]> writes:

> From: Teng Long <[email-masked]>
>
> The "struct note_data d = { 0, 0, NULL, STRBUF_INIT };" style could be
> replaced with designated init format.

I think our codebase calls it "designated initializer".

    notes.c: use designated initializers for clarity
    
    The "struct note_data d = { 0, 0, NULL, STRBUF_INIT };" style could be
    replaced with designated initializer for clarity.
    
    Signed-off-by: Teng Long <[email-masked]>
    Signed-off-by: Junio C Hamano <[email-masked]>