summaryrefslogtreecommitdiff
path: root/src/signature.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/signature.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/signature.h')
-rw-r--r--src/signature.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/signature.h b/src/signature.h
new file mode 100644
index 000000000..ee212c2dc
--- /dev/null
+++ b/src/signature.h
@@ -0,0 +1,12 @@
+#ifndef INCLUDE_signature_h__
+#define INCLUDE_signature_h__
+
+#include "git2/common.h"
+#include "git2/signature.h"
+#include "repository.h"
+#include <time.h>
+
+int git_signature__parse(git_signature *sig, char **buffer_out, const char *buffer_end, const char *header);
+int git_signature__write(git_odb_source *src, const char *header, const git_signature *sig);
+
+#endif