Skip to content

Commit cd2b8ae

Browse files
committed
whitespace: have SP on both sides of an assignment "="
I've deliberately excluded the borrowed code in compat/nedmalloc directory. Signed-off-by: Junio C Hamano <[email protected]>
1 parent f877fd8 commit cd2b8ae

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

builtin/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ static int show(int argc, const char **argv)
11131113
url = states.remote->url;
11141114
url_nr = states.remote->url_nr;
11151115
}
1116-
for (i=0; i < url_nr; i++)
1116+
for (i = 0; i < url_nr; i++)
11171117
printf(" Push URL: %s\n", url[i]);
11181118
if (!i)
11191119
printf(" Push URL: %s\n", "(no URL)");

commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ void sort_in_topological_order(struct commit_list ** list, int lifo)
515515

516516
commit = work_item->item;
517517
for (parents = commit->parents; parents ; parents = parents->next) {
518-
struct commit *parent=parents->item;
518+
struct commit *parent = parents->item;
519519

520520
if (!parent->indegree)
521521
continue;

http-push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ static int delete_remote_branch(const char *pattern, int force)
16551655
return error("Remote HEAD is not a symref");
16561656

16571657
/* Remote branch must not be the remote HEAD */
1658-
for (i=0; symref && i<MAXDEPTH; i++) {
1658+
for (i = 0; symref && i < MAXDEPTH; i++) {
16591659
if (!strcmp(remote_ref->name, symref))
16601660
return error("Remote branch %s is the current HEAD",
16611661
remote_ref->name);

read-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ static void show_file(const char * fmt, const char * name, int in_porcelain,
10871087
{
10881088
if (in_porcelain && *first && header_msg) {
10891089
printf("%s\n", header_msg);
1090-
*first=0;
1090+
*first = 0;
10911091
}
10921092
printf(fmt, name);
10931093
}

0 commit comments

Comments
 (0)