[PATCH 2/8] submodule.c: fix indentation
- From
Stefan Beller <sbeller@google.com>
- Date
- Sep 21, 2018, 22:35 UTC
- Message-ID
- <20180921223558.65055-3-sbeller@google.com>
- In-Reply-To
- <20180921223558.65055-1-sbeller@google.com>
The submodule subsystem is really bad at staying within 80 characters. Fix it while we are here.
Signed-off-by: Stefan Beller <sbeller@google.com> --- submodule.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/submodule.c b/submodule.c index ed05339b588..67469a8f513 100644 --- a/submodule.c +++ b/submodule.c @@ -1245,7 +1245,8 @@ static int get_next_submodule(struct child_process *cp, if (!submodule) { const char *name = default_name_or_path(ce->name); if (name) { - default_submodule.path = default_submodule.name = name; + default_submodule.path = name; + default_submodule.name = name; submodule = &default_submodule; } } @@ -1255,8 +1256,10 @@ static int get_next_submodule(struct child_process *cp, default: case RECURSE_SUBMODULES_DEFAULT: case RECURSE_SUBMODULES_ON_DEMAND: - if (!submodule || !unsorted_string_list_lookup(&changed_submodule_names, - submodule->name)) + if (!submodule || + !unsorted_string_list_lookup( + &changed_submodule_names, + submodule->name)) continue; default_argv = "on-demand"; break;
-- 2.19.0.444.g18242da7ef-goog