Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
submodule.c: fix indentation
author
Stefan Beller
<sbeller@google.com>
Thu, 29 Nov 2018 00:27:49 +0000
(16:27 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 5 Dec 2018 02:42:31 +0000
(11:42 +0900)
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>
submodule.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
161b1cf
)
diff --git
a/submodule.c
b/submodule.c
index 6415cc55807c7ed9ee4cbcaa57f41a5804b6e854..bc48ea3b6836651793fcd76f04ffbca83cad76fe 100644
(file)
--- 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) {
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;
}
}
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:
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;
continue;
default_argv = "on-demand";
break;