Use same-directory include for public headers

It doesn't make sense to use "git/somefile.h" in the
public git headers, as it's quite likely that projects
using them will have a git directory themselves. This
alters it, making the public headers look for headers
in the same directory they themselves are in.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Andreas Ericsson 2008-11-18 00:58:02 +01:00 committed by Shawn O. Pearce
parent eb160e949e
commit 257bd746cf
5 changed files with 9 additions and 9 deletions

View File

@ -26,8 +26,8 @@
#ifndef INCLUDE_git_commit_h__ #ifndef INCLUDE_git_commit_h__
#define INCLUDE_git_commit_h__ #define INCLUDE_git_commit_h__
#include "git/common.h" #include "common.h"
#include "git/oid.h" #include "oid.h"
/** /**
* @file git/commit.h * @file git/commit.h

View File

@ -26,8 +26,8 @@
#ifndef INCLUDE_git_odb_h__ #ifndef INCLUDE_git_odb_h__
#define INCLUDE_git_odb_h__ #define INCLUDE_git_odb_h__
#include "git/common.h" #include "common.h"
#include "git/oid.h" #include "oid.h"
/** /**
* @file git/odb.h * @file git/odb.h

View File

@ -26,7 +26,7 @@
#ifndef INCLUDE_git_oid_h__ #ifndef INCLUDE_git_oid_h__
#define INCLUDE_git_oid_h__ #define INCLUDE_git_oid_h__
#include "git/common.h" #include "common.h"
/** /**
* @file git/oid.h * @file git/oid.h

View File

@ -26,9 +26,9 @@
#ifndef INCLUDE_git_revwalk_h__ #ifndef INCLUDE_git_revwalk_h__
#define INCLUDE_git_revwalk_h__ #define INCLUDE_git_revwalk_h__
#include "git/common.h" #include "common.h"
#include "git/odb.h" #include "odb.h"
#include "git/commit.h" #include "commit.h"
/** /**
* @file git/revwalk.h * @file git/revwalk.h

View File

@ -26,7 +26,7 @@
#ifndef INCLUDE_git_zlib_h__ #ifndef INCLUDE_git_zlib_h__
#define INCLUDE_git_zlib_h__ #define INCLUDE_git_zlib_h__
#include "git/common.h" #include "common.h"
#include <zlib.h> #include <zlib.h>
/** /**