]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff users: use designated initializers for out_line
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 12 Apr 2021 17:15:28 +0000 (19:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 May 2021 03:47:31 +0000 (12:47 +0900)
commit22233d43eb5479d1076e034eb5cdba973fa2b02a
tree96179bcade36e6fbc6745c44d153ee1f3da50971
parentf97fe358576c81d995843644ab58de1ebeb7fee9
xdiff users: use designated initializers for out_line

Amend the code added in 611e42a5980 (xdiff: provide a separate emit
callback for hunks, 2018-11-02) to be more readable by using
designated initializers.

This changes "priv" in rerere.c to be initialized to NULL as we did in
merge-tree.c. That's not needed as we'll only use it if the callback
is defined, but being consistent here is better and less verbose.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/merge-tree.c
builtin/rerere.c