summaryrefslogtreecommitdiff
path: root/src/commit.h
diff options
context:
space:
mode:
authorAndreas Ericsson <ae@op5.se>2008-11-18 21:28:55 +0100
committerShawn O. Pearce <spearce@spearce.org>2008-11-22 12:08:00 -0800
commit4f0adcd0e61eabe06fe32be66b16559537124b7a (patch)
tree4fc3874b118752e40de556b1c3e7b4a9f1737d00 /src/commit.h
parent36f0f61fc8578478a9dc9b33a1a0d07cdb98a5e5 (diff)
downloadlibgit2-4f0adcd0e61eabe06fe32be66b16559537124b7a.tar.gz
Get rid of GIT__PRIVATE macro
Using it in the first place means something's wrong. This patch replaces it with an internal header which carries the previously "protected" code instead. Internal source-files simply include "commit.h" and they're done. The internal header includes the public one to make sure we always use the proper prototype. Signed-off-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/commit.h')
-rw-r--r--src/commit.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/commit.h b/src/commit.h
new file mode 100644
index 000000000..c863948af
--- /dev/null
+++ b/src/commit.h
@@ -0,0 +1,14 @@
+#ifndef INCLUDE_commit_h__
+#define INCLUDE_commit_h__
+#include "git/commit.h"
+
+#include <time.h>
+
+struct git_commit {
+ git_oid id;
+ time_t commit_time;
+ unsigned parsed:1,
+ flags:26;
+};
+
+#endif