diff options
Diffstat (limited to 'src/person.h')
| -rw-r--r-- | src/person.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/person.h b/src/person.h new file mode 100644 index 000000000..334b184eb --- /dev/null +++ b/src/person.h @@ -0,0 +1,20 @@ +#ifndef INCLUDE_person_h__ +#define INCLUDE_person_h__ + +#include "git/common.h" +#include "repository.h" +#include <time.h> + +/** Parsed representation of a person */ +struct git_person { + char *name; /**< Full name */ + char *email; /**< Email address */ + time_t time; /**< Time when this person committed the change */ +}; + +void git_person__free(git_person *person); +git_person *git_person__new(const char *name, const char *email, time_t time); +int git_person__parse(git_person *person, char **buffer_out, const char *buffer_end, const char *header); +int git_person__write(git_odb_source *src, const char *header, const git_person *person); + +#endif |
