Permalink
Browse files

Move include files to include/git/, drop git_ prefix from file names

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information...
1 parent 3e89665 commit d1ea30c399629de48ac3fe68869a21171ad131eb @spearce spearce committed Nov 1, 2008
View
10 CONVENTIONS
@@ -85,15 +85,15 @@ the following form, where ${filename} is the name of the file,
after replacing non-identifier characters with '_'.
----
- #ifndef INCLUDE_${filename}_h__
- #define INCLUDE_${filename}_h__
+ #ifndef INCLUDE_git_${filename}_h__
+ #define INCLUDE_git_${filename}_h__
- #include "git_common.h"
+ #include "git/common.h"
/**
- * @file ${filename}.h
+ * @file git/${filename}.h
* @brief Git some description
- * @defgroup ${filename} some description routines
+ * @defgroup git_${filename} some description routines
* @ingroup Git
* @{
*/
View
4 Makefile
@@ -4,12 +4,12 @@ DOXYGEN = doxygen
CFLAGS = -g -O2
-BASIC_CFLAGS := -Isrc
+BASIC_CFLAGS := -Iinclude
BASIC_CFLAGS += -DGIT__PRIVATE
BASIC_CFLAGS += -fvisibility=hidden
OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c))
-HDRS = $(wildcard src/*.h)
+HDRS = $(wildcard include/git/*.h)
all:: libgit2.a
View
2 api.doxygen
@@ -1,6 +1,6 @@
PROJECT_NAME = libgit2
-INPUT = src
+INPUT = include
QUIET = YES
RECURSIVE = YES
FILE_PATTERNS = *.h
View
6 src/git_commit.h → include/git/commit.h
@@ -36,12 +36,12 @@
#ifndef INCLUDE_git_commit_h__
#define INCLUDE_git_commit_h__
-#include "git_common.h"
-#include "git_oid.h"
+#include "git/common.h"
+#include "git/oid.h"
#include <time.h>
/**
- * @file git_commit.h
+ * @file git/commit.h
* @brief Git commit parsing, formatting routines
* @defgroup git_commit Git commit parsing, formatting routines
* @ingroup Git
View
2 src/git_common.h → include/git/common.h
@@ -47,7 +47,7 @@
#endif
/**
- * @file git_common.h
+ * @file git/common.h
* @brief Git common platform definitions
* @defgroup git_common Git common platform definitions
* @ingroup Git
View
6 src/git_odb.h → include/git/odb.h
@@ -36,12 +36,12 @@
#ifndef INCLUDE_git_odb_h__
#define INCLUDE_git_odb_h__
-#include "git_common.h"
-#include "git_oid.h"
+#include "git/common.h"
+#include "git/oid.h"
#include <unistd.h>
/**
- * @file git_odb.h
+ * @file git/odb.h
* @brief Git object database routines
* @defgroup git_odb Git object database routines
* @ingroup Git
View
4 src/git_oid.h → include/git/oid.h
@@ -36,10 +36,10 @@
#ifndef INCLUDE_git_oid_h__
#define INCLUDE_git_oid_h__
-#include "git_common.h"
+#include "git/common.h"
/**
- * @file git_oid.h
+ * @file git/oid.h
* @brief Git object id routines
* @defgroup git_oid Git object id routines
* @ingroup Git
View
8 src/git_revwalk.h → include/git/revwalk.h
@@ -36,12 +36,12 @@
#ifndef INCLUDE_git_revwalk_h__
#define INCLUDE_git_revwalk_h__
-#include "git_common.h"
-#include "git_odb.h"
-#include "git_commit.h"
+#include "git/common.h"
+#include "git/odb.h"
+#include "git/commit.h"
/**
- * @file git_revwalk.h
+ * @file git/revwalk.h
* @brief Git revision traversal routines
* @defgroup git_revwalk Git revision traversal routines
* @ingroup Git
View
2 src/git_commit.c → src/commit.c
@@ -33,7 +33,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "git_commit.h"
+#include "git/commit.h"
const git_oid *git_commit_id(git_commit *c)
{
View
2 src/git_odb.c → src/odb.c
@@ -33,7 +33,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "git_odb.h"
+#include "git/odb.h"
struct git_odb {
/** Path to the "objects" directory. */
View
2 src/git_oid.c → src/oid.c
@@ -33,7 +33,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "git_oid.h"
+#include "git/oid.h"
#include <string.h>
static signed char from_hex[] = {
View
2 src/git_revwalk.c → src/revwalk.c
@@ -33,7 +33,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "git_revwalk.h"
+#include "git/revwalk.h"
#include <stdlib.h>
struct git_revp {

0 comments on commit d1ea30c

Please sign in to comment.