summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f877fd8)
raw | patch | inline | side by side (parent: f877fd8)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 25 Aug 2011 21:46:52 +0000 (14:46 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 25 Aug 2011 21:47:07 +0000 (14:47 -0700) |
I've deliberately excluded the borrowed code in compat/nedmalloc
directory.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
directory.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c | patch | blob | history | |
commit.c | patch | blob | history | |
http-push.c | patch | blob | history | |
read-cache.c | patch | blob | history |
diff --git a/builtin/remote.c b/builtin/remote.c
index 9ff1cac69b9fd21c5f7dfc06b5859fedccc67644..1fb441c964ba4942876865c3d84d9b49d9e5d8f8 100644 (file)
--- a/builtin/remote.c
+++ b/builtin/remote.c
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)");
diff --git a/commit.c b/commit.c
index ac337c7d7dc1724fa918f9340816d3102edb10bd..913dbabd1c12772d574f5814f73a12ed6bd4a9da 100644 (file)
--- a/commit.c
+++ b/commit.c
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;
diff --git a/http-push.c b/http-push.c
index 6e8f6d09abb6397f1782fa32d9d273fc4fc740fe..376331a76fcde24e6828eba0b88fec26d93fe56f 100644 (file)
--- a/http-push.c
+++ b/http-push.c
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);
diff --git a/read-cache.c b/read-cache.c
index 4ac9a037f478e769a69072c324a47876e298cae4..0a641034ce164fff91c9e8736b28cf98b6eba6bb 100644 (file)
--- a/read-cache.c
+++ b/read-cache.c
{
if (in_porcelain && *first && header_msg) {
printf("%s\n", header_msg);
- *first=0;
+ *first = 0;
}
printf(fmt, name);
}