Skip to content

Commit 44908fe

Browse files
author
Vicent Marti
committed
Change the library include file
Libgit2 is now officially include as #include "<git2.h>" or indidividual files may be included as #include <git2/index.h> Signed-off-by: Vicent Marti <tanoku@gmail.com>
1 parent d12299f commit 44908fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+109
-109
lines changed

src/blob.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
* Boston, MA 02110-1301, USA.
2424
*/
2525

26-
#include "git/common.h"
27-
#include "git/object.h"
28-
#include "git/repository.h"
26+
#include "git2/common.h"
27+
#include "git2/object.h"
28+
#include "git2/repository.h"
2929

3030
#include "common.h"
3131
#include "blob.h"

src/blob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef INCLUDE_blob_h__
22
#define INCLUDE_blob_h__
33

4-
#include "git/blob.h"
4+
#include "git2/blob.h"
55
#include "repository.h"
66
#include "fileops.h"
77

src/commit.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
* Boston, MA 02110-1301, USA.
2424
*/
2525

26-
#include "git/common.h"
27-
#include "git/object.h"
28-
#include "git/repository.h"
26+
#include "git2/common.h"
27+
#include "git2/object.h"
28+
#include "git2/repository.h"
2929

3030
#include "common.h"
3131
#include "commit.h"

src/commit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef INCLUDE_commit_h__
22
#define INCLUDE_commit_h__
33

4-
#include "git/commit.h"
4+
#include "git2/commit.h"
55
#include "tree.h"
66
#include "repository.h"
77
#include "vector.h"

src/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define GIT_WIN32 1
99
#endif
1010

11-
#include "git/thread-utils.h"
11+
#include "git2/thread-utils.h"
1212
#include "cc-compat.h"
1313

1414
#ifdef GIT_HAS_PTHREAD
@@ -46,7 +46,7 @@ typedef SSIZE_T ssize_t;
4646

4747
#endif
4848

49-
#include "git/common.h"
49+
#include "git2/common.h"
5050
#include "util.h"
5151
#include "thread-utils.h"
5252
#include "errors.h"

src/delta-apply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "common.h"
2-
#include "git/odb.h"
2+
#include "git2/odb.h"
33
#include "delta-apply.h"
44

55
/*

src/errors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef INCLUDE_errors_h__
22
#define INCLUDE_errors_h__
33

4-
#include "git/errors.h"
4+
#include "git2/errors.h"
55

66
/* convenience functions */
77
GIT_INLINE(int) git_int_error(int code)

src/git.h renamed to src/git2.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,24 @@
2626
#ifndef INCLUDE_git_git_h__
2727
#define INCLUDE_git_git_h__
2828

29-
#include "git/common.h"
30-
#include "git/errors.h"
31-
#include "git/zlib.h"
29+
#include "git2/common.h"
30+
#include "git2/errors.h"
31+
#include "git2/zlib.h"
3232

33-
#include "git/types.h"
33+
#include "git2/types.h"
3434

35-
#include "git/oid.h"
36-
#include "git/odb.h"
35+
#include "git2/oid.h"
36+
#include "git2/odb.h"
3737

38-
#include "git/repository.h"
39-
#include "git/revwalk.h"
38+
#include "git2/repository.h"
39+
#include "git2/revwalk.h"
4040

41-
#include "git/object.h"
42-
#include "git/blob.h"
43-
#include "git/commit.h"
44-
#include "git/tag.h"
45-
#include "git/tree.h"
41+
#include "git2/object.h"
42+
#include "git2/blob.h"
43+
#include "git2/commit.h"
44+
#include "git2/tag.h"
45+
#include "git2/tree.h"
4646

47-
#include "git/index.h"
47+
#include "git2/index.h"
4848

4949
#endif
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)