submodule: remove extra line feeds between callback struct and macro
authorShourya Shukla <redacted>
Wed, 12 Aug 2020 19:44:01 +0000 (01:14 +0530)
committerJunio C Hamano <redacted>
Wed, 12 Aug 2020 21:12:58 +0000 (14:12 -0700)
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 <redacted>
Mentored-by: Kaartic Sivaraam <redacted>
Helped-by: Johannes Schindelin <redacted>
Helped-by: Philip Oakley <redacted>
Signed-off-by: Shourya Shukla <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/submodule--helper.c

index df135abbf10342472f692203d9006943af79294f..a03dc84ea42861fe523d8e09049f10ba2c1ddfff 100644 (file)
@@ -612,7 +612,6 @@ struct init_cb {
        const char *prefix;
        unsigned int flags;
 };
-
 #define INIT_CB_INIT { NULL, 0 }
 
 static void init_submodule(const char *path, const char *prefix,
@@ -742,7 +741,6 @@ struct status_cb {
        const char *prefix;
        unsigned int flags;
 };
-
 #define STATUS_CB_INIT { NULL, 0 }
 
 static void print_status(unsigned int flags, char state, const char *path,
@@ -933,7 +931,6 @@ struct sync_cb {
        const char *prefix;
        unsigned int flags;
 };
-
 #define SYNC_CB_INIT { NULL, 0 }
 
 static void sync_submodule(const char *path, const char *prefix,
git clone https://git.99rst.org/PROJECT