Skip to content

Commit 08e9df2

Browse files
peffgitster
authored andcommitted
style: indent multiline "if" conditions to align
Commit 6dc905d (config: split repo scope to local and worktree, 2020-02-10) made some "if" statements multiline, but didn't indent the second lines in our usual way. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 145d59f commit 08e9df2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static int handle_config(const char *key, const char *value, void *cb)
370370
remote = make_remote(name, namelen);
371371
remote->origin = REMOTE_CONFIG;
372372
if (current_config_scope() == CONFIG_SCOPE_LOCAL ||
373-
current_config_scope() == CONFIG_SCOPE_WORKTREE)
373+
current_config_scope() == CONFIG_SCOPE_WORKTREE)
374374
remote->configured_in_repo = 1;
375375
if (!strcmp(subkey, "mirror"))
376376
remote->mirror = git_config_bool(key, value);

upload-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ static int upload_pack_config(const char *var, const char *value, void *unused)
10741074
}
10751075

10761076
if (current_config_scope() != CONFIG_SCOPE_LOCAL &&
1077-
current_config_scope() != CONFIG_SCOPE_WORKTREE) {
1077+
current_config_scope() != CONFIG_SCOPE_WORKTREE) {
10781078
if (!strcmp("uploadpack.packobjectshook", var))
10791079
return git_config_string(&pack_objects_hook, var, value);
10801080
}

0 commit comments

Comments
 (0)