Fixed indentation issues in commit.c Signed-off-by: Vicent Marti <tanoku@gmail.com> Signed-off-by: Andreas Ericsson <ae@op5.se>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
diff --git a/src/commit.c b/src/commit.c
index e589dde..bbb0d9b 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;
}
+
diff --git a/src/commit.h b/src/commit.h
index 1cdb9a4..fe4db4d 100644
--- a/src/commit.h
+++ b/src/commit.h
@@ -10,11 +10,11 @@
#define GIT_COMMIT_DELAY (1 << 2)
struct git_commit {
- git_oid id;
- time_t commit_time;
+ git_oid id;
+ time_t commit_time;
git_revpool *pool;
- unsigned parsed:1,
- flags:26;
+ unsigned parsed:1,
+ flags:26;
};
int git_commit__parse_oid(git_oid *oid, char **buffer_out, const char *buffer_end, const char *header);