summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-11-29 00:27:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-12-05 02:42:31 (GMT)
commit25e3d28efd56124b51e02a3f8496401d4e8fb40b (patch)
tree57a4468f00e33fa327407b220f189593524f2215 /submodule.c
parent161b1cf3bdca7fecf5ec03ffdb74260312cd0229 (diff)
downloadgit-25e3d28efd56124b51e02a3f8496401d4e8fb40b.zip
git-25e3d28efd56124b51e02a3f8496401d4e8fb40b.tar.gz
git-25e3d28efd56124b51e02a3f8496401d4e8fb40b.tar.bz2
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>
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/submodule.c b/submodule.c
index 6415cc5..bc48ea3 100644
--- a/submodule.c
+++ b/submodule.c
@@ -1271,7 +1271,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;
}
}
@@ -1281,8 +1282,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;