summaryrefslogtreecommitdiff
path: root/builtin/submodule--helper.c
diff options
context:
space:
mode:
authorShourya Shukla <shouryashukla.oo@gmail.com>2020-08-12 19:44:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-08-12 21:12:58 (GMT)
commit6414c3d3166152657ea55b7944303a308b0b2d59 (patch)
tree91586d4122cbd6d196955105c15165f798113e04 /builtin/submodule--helper.c
parent7814e8a05a59c0cf5fb186661d1551c75d1299b5 (diff)
downloadgit-6414c3d3166152657ea55b7944303a308b0b2d59.zip
git-6414c3d3166152657ea55b7944303a308b0b2d59.tar.gz
git-6414c3d3166152657ea55b7944303a308b0b2d59.tar.bz2
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 <chriscool@tuxfamily.org> Mentored-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com> Helped-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Helped-by: Philip Oakley <philipoakley@iee.email> Signed-off-by: Shourya Shukla <shouryashukla.oo@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/submodule--helper.c')
-rw-r--r--builtin/submodule--helper.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
index df135ab..a03dc84 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -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,