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>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
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>
/**