Skip to content

Commit aa6949e

Browse files
periperidipgitster
authored andcommitted
submodule: remove extra line feeds between callback struct and macro
Many `submodule--helper` subcommands follow the convention that a struct defines their callback data, and the declaration of that struct is followed immediately by a macro to use in static initializers, without any separating empty line. Let's align the `init`, `status` and `sync` subcommands with that convention. Mentored-by: Christian Couder <[email protected]> Mentored-by: Kaartic Sivaraam <[email protected]> Helped-by: Johannes Schindelin <[email protected]> Helped-by: Philip Oakley <[email protected]> Signed-off-by: Shourya Shukla <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3147aa4 commit aa6949e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

builtin/submodule--helper.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,6 @@ struct init_cb {
612612
const char *prefix;
613613
unsigned int flags;
614614
};
615-
616615
#define INIT_CB_INIT { NULL, 0 }
617616

618617
static void init_submodule(const char *path, const char *prefix,
@@ -742,7 +741,6 @@ struct status_cb {
742741
const char *prefix;
743742
unsigned int flags;
744743
};
745-
746744
#define STATUS_CB_INIT { NULL, 0 }
747745

748746
static void print_status(unsigned int flags, char state, const char *path,
@@ -933,7 +931,6 @@ struct sync_cb {
933931
const char *prefix;
934932
unsigned int flags;
935933
};
936-
937934
#define SYNC_CB_INIT { NULL, 0 }
938935

939936
static void sync_submodule(const char *path, const char *prefix,

0 commit comments

Comments
 (0)