submodule.c: fix indentation
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefan Beller committed
Nov 28, 2018 at 16:27 UTC
25e3d28efd56124b51e02a3f8496401d4e8fb40b
1 file changed
+6
-3
submodule.c
+6
-3
@@ -1271,7 +1271,8 @@ static int get_next_submodule(struct child_process *cp,
1271
if (!submodule) {
1272
const char *name = default_name_or_path(ce->name);
1273
if (name) {
1274
- default_submodule.path = default_submodule.name = name;
1274
+ default_submodule.path = name;
1275
+ default_submodule.name = name;
1276
submodule = &default_submodule;
1277
}
1278
}
@@ -1281,8 +1282,10 @@ static int get_next_submodule(struct child_process *cp,
1282
default:
1283
case RECURSE_SUBMODULES_DEFAULT:
1284
case RECURSE_SUBMODULES_ON_DEMAND:
1284
- if (!submodule || !unsorted_string_list_lookup(&changed_submodule_names,
1285
- submodule->name))
1285
+ if (!submodule ||
1286
+ !unsorted_string_list_lookup(
1287
+ &changed_submodule_names,
1288
+ submodule->name))
1289
continue;
1290
default_argv = "on-demand";
1291
break;