summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-05-14 18:57:50 +0200
committerAndreas Ericsson <ae@op5.se>2010-06-02 10:32:06 +0200
commit4caa8962a6af9fac72ab81afb03779bc3acff910 (patch)
treec3ffa781d527d08ddd3cf626ade4685fadce498c /src/commit.c
parent417f0abc9b41f01520df863567b25efd03bd281c (diff)
downloadlibgit2-4caa8962a6af9fac72ab81afb03779bc3acff910.tar.gz
Fixed indentation issues in commit.c
Signed-off-by: Vicent Marti <tanoku@gmail.com> Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/commit.c b/src/commit.c
index e589dde5..bbb0d9be 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -71,21 +71,21 @@ error_cleanup:
int git_commit__parse_time(time_t *commit_time, char *buffer, const char *buffer_end)
{
- if (memcmp(buffer, "author ", 7) != 0)
- return -1;
+ if (memcmp(buffer, "author ", 7) != 0)
+ return -1;
buffer = memchr(buffer, '\n', buffer_end - buffer);
if (buffer == 0 || buffer >= buffer_end)
return -1;
- if (memcmp(buffer, "committer ", 10) != 0)
- return -1;
+ if (memcmp(buffer, "committer ", 10) != 0)
+ return -1;
buffer = memchr(buffer, '\n', buffer_end - buffer);
if (buffer == 0 || buffer >= buffer_end)
return -1;
- *commit_time = strtol(buffer, &buffer, 10);
+ *commit_time = strtol(buffer, &buffer, 10);
return (buffer < buffer_end) ? 0 : -1;
}
@@ -116,8 +116,8 @@ int git_commit__parse_oid(git_oid *oid, char **buffer_out, const char *buffer_en
int git_commit__parse_buffer(git_commit *commit, void *data, size_t len)
{
- char *buffer = (char *)data;
- const char *buffer_end = (char *)data + len;
+ char *buffer = (char *)data;
+ const char *buffer_end = (char *)data + len;
git_oid oid;
@@ -146,5 +146,6 @@ int git_commit__parse_buffer(git_commit *commit, void *data, size_t len)
commit->parsed = 1;
- return 0;
+ return 0;
}
+