summaryrefslogtreecommitdiff
path: root/src/git/common.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-08-07 00:59:58 +0200
committerVicent Marti <tanoku@gmail.com>2010-08-07 00:59:58 +0200
commit364788e1d114a174dd3c6fdfd3aa16d9627551b2 (patch)
treececae822706ee4ddd4c661e11de9634547c8e766 /src/git/common.h
parent7e4f56a5bb4a87cd9537821ba4ccd1f642481a0a (diff)
downloadlibgit2-364788e1d114a174dd3c6fdfd3aa16d9627551b2.tar.gz
Refactor parsing methods
The 'parse_oid' and 'parse_person' methods which were used by the commit parser are now global so they can be used when parsing other objects. The 'git_commit_person' struct has been changed to a generic 'git_person'. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git/common.h')
-rw-r--r--src/git/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/git/common.h b/src/git/common.h
index 2506dae36..09972aade 100644
--- a/src/git/common.h
+++ b/src/git/common.h
@@ -88,6 +88,13 @@ GIT_BEGIN_DECL
/** A revision traversal pool. */
typedef struct git_revpool git_revpool;
+/** Parsed representation of a person */
+typedef struct git_person {
+ char name[64]; /**< Full name */
+ char email[64]; /**< Email address */
+ time_t time; /**< Time when this person commited the change */
+} git_person;
+
/** @} */
GIT_END_DECL
#endif