Commit 257bd746cf4b3f1e048a640202493c3e3bcdc1ae

Andreas Ericsson 2008-11-18T00:58:02

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>

diff --git a/include/git/commit.h b/include/git/commit.h
index 88bb8fe..160148d 100644
--- a/include/git/commit.h
+++ b/include/git/commit.h
@@ -26,8 +26,8 @@
 #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
diff --git a/include/git/odb.h b/include/git/odb.h
index 0d65e19..33f0f5c 100644
--- a/include/git/odb.h
+++ b/include/git/odb.h
@@ -26,8 +26,8 @@
 #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
diff --git a/include/git/oid.h b/include/git/oid.h
index 1ff4954..dd95fb5 100644
--- a/include/git/oid.h
+++ b/include/git/oid.h
@@ -26,7 +26,7 @@
 #ifndef INCLUDE_git_oid_h__
 #define INCLUDE_git_oid_h__
 
-#include "git/common.h"
+#include "common.h"
 
 /**
  * @file git/oid.h
diff --git a/include/git/revwalk.h b/include/git/revwalk.h
index eb1228f..cd87489 100644
--- a/include/git/revwalk.h
+++ b/include/git/revwalk.h
@@ -26,9 +26,9 @@
 #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
diff --git a/include/git/zlib.h b/include/git/zlib.h
index 8ba7994..621dbe6 100644
--- a/include/git/zlib.h
+++ b/include/git/zlib.h
@@ -26,7 +26,7 @@
 #ifndef INCLUDE_git_zlib_h__
 #define INCLUDE_git_zlib_h__
 
-#include "git/common.h"
+#include "common.h"
 #include <zlib.h>
 
 /**