Skip to content

Commit

Permalink
whitespace: have SP on both sides of an assignment "="
Browse files Browse the repository at this point in the history
I've deliberately excluded the borrowed code in compat/nedmalloc
directory.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
gitster committed Aug 25, 2011
1 parent f877fd8 commit cd2b8ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion builtin/remote.c
Expand Up @@ -1113,7 +1113,7 @@ static int show(int argc, const char **argv)
url = states.remote->url;
url_nr = states.remote->url_nr;
}
for (i=0; i < url_nr; i++)
for (i = 0; i < url_nr; i++)
printf(" Push URL: %s\n", url[i]);
if (!i)
printf(" Push URL: %s\n", "(no URL)");
Expand Down
2 changes: 1 addition & 1 deletion commit.c
Expand Up @@ -515,7 +515,7 @@ void sort_in_topological_order(struct commit_list ** list, int lifo)

commit = work_item->item;
for (parents = commit->parents; parents ; parents = parents->next) {
struct commit *parent=parents->item;
struct commit *parent = parents->item;

if (!parent->indegree)
continue;
Expand Down
2 changes: 1 addition & 1 deletion http-push.c
Expand Up @@ -1655,7 +1655,7 @@ static int delete_remote_branch(const char *pattern, int force)
return error("Remote HEAD is not a symref");

/* Remote branch must not be the remote HEAD */
for (i=0; symref && i<MAXDEPTH; i++) {
for (i = 0; symref && i < MAXDEPTH; i++) {
if (!strcmp(remote_ref->name, symref))
return error("Remote branch %s is the current HEAD",
remote_ref->name);
Expand Down
2 changes: 1 addition & 1 deletion read-cache.c
Expand Up @@ -1087,7 +1087,7 @@ static void show_file(const char * fmt, const char * name, int in_porcelain,
{
if (in_porcelain && *first && header_msg) {
printf("%s\n", header_msg);
*first=0;
*first = 0;
}
printf(fmt, name);
}
Expand Down

0 comments on commit cd2b8ae

Please sign in to comment.