summaryrefslogtreecommitdiff
path: root/src/person.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-18 02:10:25 +0200
committerVicent Marti <tanoku@gmail.com>2010-12-18 02:35:33 +0200
commit638c2ca4281589b73f2d402bb80775242045144a (patch)
tree8ad909bbf2612ddebe2078ed623f3fb4c9421cf1 /src/person.h
parent5cccfa899926a93c12af8232c0c0d16c0c9c7ff2 (diff)
downloadlibgit2-638c2ca4281589b73f2d402bb80775242045144a.tar.gz
Rename 'git_person' to 'git_signature'
The new signature struct is public, and contains information about the timezone offset. Must be free'd manually by the user. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/person.h')
-rw-r--r--src/person.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/person.h b/src/person.h
deleted file mode 100644
index d7ccbc9ba..000000000
--- a/src/person.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#ifndef INCLUDE_person_h__
-#define INCLUDE_person_h__
-
-#include "git2/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 */
- int timezone_offset; /**< Time zone offset in minutes. Can be either positive or negative. */
-};
-
-void git_person__free(git_person *person);
-git_person *git_person__new(const char *name, const char *email, time_t time, int offset);
-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