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>
OS = unix
BASIC_CFLAGS := -Isrc
OS = unix
BASIC_CFLAGS := -Isrc
-BASIC_CFLAGS += -DGIT__PRIVATE
BASIC_CFLAGS += -fvisibility=hidden
OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c))
BASIC_CFLAGS += -fvisibility=hidden
OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c))
* Boston, MA 02110-1301, USA.
*/
* Boston, MA 02110-1301, USA.
*/
const git_oid *git_commit_id(git_commit *c)
{
const git_oid *git_commit_id(git_commit *c)
{
--- /dev/null
+#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
/** Parsed representation of a commit object. */
typedef struct git_commit git_commit;
/** Parsed representation of a commit object. */
typedef struct git_commit git_commit;
-#ifdef GIT__PRIVATE
-struct git_commit {
- git_oid id;
- time_t commit_time;
- unsigned parsed:1,
- flags:26;
-};
-#endif
/**
* Parse (or lookup) a commit from a revision pool.
/**
* Parse (or lookup) a commit from a revision pool.