Commit d1ea30c3 by Shawn O. Pearce

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

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
parent 3e89665e
......@@ -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
* @{
*/
......
......@@ -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
......
PROJECT_NAME = libgit2
INPUT = src
INPUT = include
QUIET = YES
RECURSIVE = YES
FILE_PATTERNS = *.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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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)
{
......
......@@ -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. */
......
......@@ -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[] = {
......
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment