Commits

Andreas Ericsson  committed 257bd74

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>

  • Participants
  • Parent commits eb160e9

Comments (0)

Files changed (5)

File include/git/commit.h

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

File include/git/odb.h

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

File include/git/oid.h

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

File include/git/revwalk.h

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

File include/git/zlib.h

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