Skip to content

Commit 25e3d28

Browse files
stefanbellergitster
authored andcommitted
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>
1 parent 161b1cf commit 25e3d28

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

submodule.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,8 @@ static int get_next_submodule(struct child_process *cp,
12711271
if (!submodule) {
12721272
const char *name = default_name_or_path(ce->name);
12731273
if (name) {
1274-
default_submodule.path = default_submodule.name = name;
1274+
default_submodule.path = name;
1275+
default_submodule.name = name;
12751276
submodule = &default_submodule;
12761277
}
12771278
}
@@ -1281,8 +1282,10 @@ static int get_next_submodule(struct child_process *cp,
12811282
default:
12821283
case RECURSE_SUBMODULES_DEFAULT:
12831284
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))
12861289
continue;
12871290
default_argv = "on-demand";
12881291
break;

0 commit comments

Comments
 (0)