Commit 257bd746 by Andreas Ericsson Committed by Shawn O. Pearce

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>
parent eb160e94
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -26,7 +26,7 @@
#ifndef INCLUDE_git_zlib_h__
#define INCLUDE_git_zlib_h__
#include "git/common.h"
#include "common.h"
#include <zlib.h>
/**
......
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