mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-20 01:10:02 +00:00
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:
parent
eb160e949e
commit
257bd746cf
@ -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>
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user