summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-06 23:03:16 +0200
committerVicent Marti <tanoku@gmail.com>2010-12-06 23:03:16 +0200
commit44908fe763b1a2097b65c86130ac679c458df7d2 (patch)
treed4b2e597ec985cabff2236895c4515100a5063e4 /src
parentd12299fe22e549a20e632668fdbe13cab9def9df (diff)
downloadlibgit2-44908fe763b1a2097b65c86130ac679c458df7d2.tar.gz
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>
Diffstat (limited to 'src')
-rw-r--r--src/blob.c6
-rw-r--r--src/blob.h2
-rw-r--r--src/commit.c6
-rw-r--r--src/commit.h2
-rw-r--r--src/common.h4
-rw-r--r--src/delta-apply.c2
-rw-r--r--src/errors.h2
-rw-r--r--src/git2.h (renamed from src/git.h)28
-rw-r--r--src/git2/blob.h (renamed from src/git/blob.h)0
-rw-r--r--src/git2/commit.h (renamed from src/git/commit.h)0
-rw-r--r--src/git2/common.h (renamed from src/git/common.h)0
-rw-r--r--src/git2/errors.h (renamed from src/git/errors.h)0
-rw-r--r--src/git2/index.h (renamed from src/git/index.h)0
-rw-r--r--src/git2/object.h (renamed from src/git/object.h)0
-rw-r--r--src/git2/odb.h (renamed from src/git/odb.h)0
-rw-r--r--src/git2/odb_backend.h (renamed from src/git/odb_backend.h)0
-rw-r--r--src/git2/oid.h (renamed from src/git/oid.h)0
-rw-r--r--src/git2/repository.h (renamed from src/git/repository.h)0
-rw-r--r--src/git2/revwalk.h (renamed from src/git/revwalk.h)0
-rw-r--r--src/git2/tag.h (renamed from src/git/tag.h)0
-rw-r--r--src/git2/thread-utils.h (renamed from src/git/thread-utils.h)0
-rw-r--r--src/git2/tree.h (renamed from src/git/tree.h)0
-rw-r--r--src/git2/types.h (renamed from src/git/types.h)0
-rw-r--r--src/git2/zlib.h (renamed from src/git/zlib.h)0
-rw-r--r--src/hash.h2
-rw-r--r--src/hashtable.h6
-rw-r--r--src/index.c4
-rw-r--r--src/index.h4
-rw-r--r--src/odb.c6
-rw-r--r--src/odb.h4
-rw-r--r--src/odb_loose.c6
-rw-r--r--src/odb_pack.c6
-rw-r--r--src/oid.c2
-rw-r--r--src/person.c2
-rw-r--r--src/person.h2
-rw-r--r--src/repository.c2
-rw-r--r--src/repository.h8
-rw-r--r--src/revwalk.h4
-rw-r--r--src/tag.c4
-rw-r--r--src/tag.h2
-rw-r--r--src/tree.c4
-rw-r--r--src/tree.h2
-rw-r--r--src/vector.h2
43 files changed, 62 insertions, 62 deletions
diff --git a/src/blob.c b/src/blob.c
index 28d48da2a..c5a7143f0 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -23,9 +23,9 @@
* Boston, MA 02110-1301, USA.
*/
-#include "git/common.h"
-#include "git/object.h"
-#include "git/repository.h"
+#include "git2/common.h"
+#include "git2/object.h"
+#include "git2/repository.h"
#include "common.h"
#include "blob.h"
diff --git a/src/blob.h b/src/blob.h
index db37d2c24..febc296fe 100644
--- a/src/blob.h
+++ b/src/blob.h
@@ -1,7 +1,7 @@
#ifndef INCLUDE_blob_h__
#define INCLUDE_blob_h__
-#include "git/blob.h"
+#include "git2/blob.h"
#include "repository.h"
#include "fileops.h"
diff --git a/src/commit.c b/src/commit.c
index 9e3cd3301..ef3d80b51 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -23,9 +23,9 @@
* Boston, MA 02110-1301, USA.
*/
-#include "git/common.h"
-#include "git/object.h"
-#include "git/repository.h"
+#include "git2/common.h"
+#include "git2/object.h"
+#include "git2/repository.h"
#include "common.h"
#include "commit.h"
diff --git a/src/commit.h b/src/commit.h
index 617d237f9..eca566ddf 100644
--- a/src/commit.h
+++ b/src/commit.h
@@ -1,7 +1,7 @@
#ifndef INCLUDE_commit_h__
#define INCLUDE_commit_h__
-#include "git/commit.h"
+#include "git2/commit.h"
#include "tree.h"
#include "repository.h"
#include "vector.h"
diff --git a/src/common.h b/src/common.h
index ff87c872c..821ee8844 100644
--- a/src/common.h
+++ b/src/common.h
@@ -8,7 +8,7 @@
#define GIT_WIN32 1
#endif
-#include "git/thread-utils.h"
+#include "git2/thread-utils.h"
#include "cc-compat.h"
#ifdef GIT_HAS_PTHREAD
@@ -46,7 +46,7 @@ typedef SSIZE_T ssize_t;
#endif
-#include "git/common.h"
+#include "git2/common.h"
#include "util.h"
#include "thread-utils.h"
#include "errors.h"
diff --git a/src/delta-apply.c b/src/delta-apply.c
index 769e97344..16f26be44 100644
--- a/src/delta-apply.c
+++ b/src/delta-apply.c
@@ -1,5 +1,5 @@
#include "common.h"
-#include "git/odb.h"
+#include "git2/odb.h"
#include "delta-apply.h"
/*
diff --git a/src/errors.h b/src/errors.h
index 94093ddb4..d22a03b33 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -1,7 +1,7 @@
#ifndef INCLUDE_errors_h__
#define INCLUDE_errors_h__
-#include "git/errors.h"
+#include "git2/errors.h"
/* convenience functions */
GIT_INLINE(int) git_int_error(int code)
diff --git a/src/git.h b/src/git2.h
index 02ccf77d1..dbf5a9961 100644
--- a/src/git.h
+++ b/src/git2.h
@@ -26,24 +26,24 @@
#ifndef INCLUDE_git_git_h__
#define INCLUDE_git_git_h__
-#include "git/common.h"
-#include "git/errors.h"
-#include "git/zlib.h"
+#include "git2/common.h"
+#include "git2/errors.h"
+#include "git2/zlib.h"
-#include "git/types.h"
+#include "git2/types.h"
-#include "git/oid.h"
-#include "git/odb.h"
+#include "git2/oid.h"
+#include "git2/odb.h"
-#include "git/repository.h"
-#include "git/revwalk.h"
+#include "git2/repository.h"
+#include "git2/revwalk.h"
-#include "git/object.h"
-#include "git/blob.h"
-#include "git/commit.h"
-#include "git/tag.h"
-#include "git/tree.h"
+#include "git2/object.h"
+#include "git2/blob.h"
+#include "git2/commit.h"
+#include "git2/tag.h"
+#include "git2/tree.h"
-#include "git/index.h"
+#include "git2/index.h"
#endif
diff --git a/src/git/blob.h b/src/git2/blob.h
index f94b1f963..f94b1f963 100644
--- a/src/git/blob.h
+++ b/src/git2/blob.h
diff --git a/src/git/commit.h b/src/git2/commit.h
index 54ecb622e..54ecb622e 100644
--- a/src/git/commit.h
+++ b/src/git2/commit.h
diff --git a/src/git/common.h b/src/git2/common.h
index 0a7de41ea..0a7de41ea 100644
--- a/src/git/common.h
+++ b/src/git2/common.h
diff --git a/src/git/errors.h b/src/git2/errors.h
index f4720bebe..f4720bebe 100644
--- a/src/git/errors.h
+++ b/src/git2/errors.h
diff --git a/src/git/index.h b/src/git2/index.h
index 8bdced6a3..8bdced6a3 100644
--- a/src/git/index.h
+++ b/src/git2/index.h
diff --git a/src/git/object.h b/src/git2/object.h
index 516591729..516591729 100644
--- a/src/git/object.h
+++ b/src/git2/object.h
diff --git a/src/git/odb.h b/src/git2/odb.h
index 6be6ea2cf..6be6ea2cf 100644
--- a/src/git/odb.h
+++ b/src/git2/odb.h
diff --git a/src/git/odb_backend.h b/src/git2/odb_backend.h
index 747f4e97a..747f4e97a 100644
--- a/src/git/odb_backend.h
+++ b/src/git2/odb_backend.h
diff --git a/src/git/oid.h b/src/git2/oid.h
index f0e39da68..f0e39da68 100644
--- a/src/git/oid.h
+++ b/src/git2/oid.h
diff --git a/src/git/repository.h b/src/git2/repository.h
index 683e78fc9..683e78fc9 100644
--- a/src/git/repository.h
+++ b/src/git2/repository.h
diff --git a/src/git/revwalk.h b/src/git2/revwalk.h
index 6a761088a..6a761088a 100644
--- a/src/git/revwalk.h
+++ b/src/git2/revwalk.h
diff --git a/src/git/tag.h b/src/git2/tag.h
index d57009870..d57009870 100644
--- a/src/git/tag.h
+++ b/src/git2/tag.h
diff --git a/src/git/thread-utils.h b/src/git2/thread-utils.h
index 241514f3a..241514f3a 100644
--- a/src/git/thread-utils.h
+++ b/src/git2/thread-utils.h
diff --git a/src/git/tree.h b/src/git2/tree.h
index d935169d8..d935169d8 100644
--- a/src/git/tree.h
+++ b/src/git2/tree.h
diff --git a/src/git/types.h b/src/git2/types.h
index 18684e13d..18684e13d 100644
--- a/src/git/types.h
+++ b/src/git2/types.h
diff --git a/src/git/zlib.h b/src/git2/zlib.h
index b68db9bc1..b68db9bc1 100644
--- a/src/git/zlib.h
+++ b/src/git2/zlib.h
diff --git a/src/hash.h b/src/hash.h
index b371c056b..2b769a4c9 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -4,7 +4,7 @@
#ifndef INCLUDE_hash_h__
#define INCLUDE_hash_h__
-#include "git/oid.h"
+#include "git2/oid.h"
typedef struct git_hash_ctx git_hash_ctx;
diff --git a/src/hashtable.h b/src/hashtable.h
index cd390b9e9..69535040d 100644
--- a/src/hashtable.h
+++ b/src/hashtable.h
@@ -1,9 +1,9 @@
#ifndef INCLUDE_hashtable_h__
#define INCLUDE_hashtable_h__
-#include "git/common.h"
-#include "git/oid.h"
-#include "git/odb.h"
+#include "git2/common.h"
+#include "git2/oid.h"
+#include "git2/odb.h"
typedef uint32_t (*git_hash_ptr)(const void *);
diff --git a/src/index.c b/src/index.c
index da22f7065..3c2bbf8cf 100644
--- a/src/index.c
+++ b/src/index.c
@@ -29,8 +29,8 @@
#include "repository.h"
#include "index.h"
#include "hash.h"
-#include "git/odb.h"
-#include "git/blob.h"
+#include "git2/odb.h"
+#include "git2/blob.h"
#define entry_padding(type, len) (8 - ((offsetof(type, path) + (len)) & 0x7))
#define short_entry_padding(len) entry_padding(struct entry_short, len)
diff --git a/src/index.h b/src/index.h
index f548c7b68..9e45a6372 100644
--- a/src/index.h
+++ b/src/index.h
@@ -4,8 +4,8 @@
#include "fileops.h"
#include "filelock.h"
#include "vector.h"
-#include "git/odb.h"
-#include "git/index.h"
+#include "git2/odb.h"
+#include "git2/index.h"
struct git_index_tree {
char *name;
diff --git a/src/odb.c b/src/odb.c
index 1595e5f9f..9dbe1ccd8 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -24,14 +24,14 @@
*/
#include "common.h"
-#include "git/zlib.h"
-#include "git/object.h"
+#include "git2/zlib.h"
+#include "git2/object.h"
#include "fileops.h"
#include "hash.h"
#include "odb.h"
#include "delta-apply.h"
-#include "git/odb_backend.h"
+#include "git2/odb_backend.h"
static int format_object_header(char *hdr, size_t n, git_rawobj *obj)
{
diff --git a/src/odb.h b/src/odb.h
index 72f0ea2b3..65f73ed30 100644
--- a/src/odb.h
+++ b/src/odb.h
@@ -1,8 +1,8 @@
#ifndef INCLUDE_odb_h__
#define INCLUDE_odb_h__
-#include <git/odb.h>
-#include <git/oid.h>
+#include "git2/odb.h"
+#include "git2/oid.h"
#include "vector.h"
diff --git a/src/odb_loose.c b/src/odb_loose.c
index a7d0d5c8a..b031bde3f 100644
--- a/src/odb_loose.c
+++ b/src/odb_loose.c
@@ -24,14 +24,14 @@
*/
#include "common.h"
-#include "git/zlib.h"
-#include "git/object.h"
+#include "git2/zlib.h"
+#include "git2/object.h"
#include "fileops.h"
#include "hash.h"
#include "odb.h"
#include "delta-apply.h"
-#include "git/odb_backend.h"
+#include "git2/odb_backend.h"
typedef struct { /* object header data */
git_otype type; /* object type */
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 82b8f147a..d59c419a5 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -24,14 +24,14 @@
*/
#include "common.h"
-#include "git/zlib.h"
-#include "git/repository.h"
+#include "git2/zlib.h"
+#include "git2/repository.h"
#include "fileops.h"
#include "hash.h"
#include "odb.h"
#include "delta-apply.h"
-#include "git/odb_backend.h"
+#include "git2/odb_backend.h"
/** First 4 bytes of a pack-*.idx file header.
*
diff --git a/src/oid.c b/src/oid.c
index f40dd14ec..698d0f927 100644
--- a/src/oid.c
+++ b/src/oid.c
@@ -24,7 +24,7 @@
*/
#include "common.h"
-#include "git/oid.h"
+#include "git2/oid.h"
#include "repository.h"
#include <string.h>
diff --git a/src/person.c b/src/person.c
index 9410913a7..e93e1b827 100644
--- a/src/person.c
+++ b/src/person.c
@@ -26,7 +26,7 @@
#include "common.h"
#include "person.h"
#include "repository.h"
-#include "git/common.h"
+#include "git2/common.h"
void git_person__free(git_person *person)
{
diff --git a/src/person.h b/src/person.h
index 334b184eb..7a9fcb75b 100644
--- a/src/person.h
+++ b/src/person.h
@@ -1,7 +1,7 @@
#ifndef INCLUDE_person_h__
#define INCLUDE_person_h__
-#include "git/common.h"
+#include "git2/common.h"
#include "repository.h"
#include <time.h>
diff --git a/src/repository.c b/src/repository.c
index 9a3563710..b28c4ac9b 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -24,7 +24,7 @@
*/
#include <stdarg.h>
-#include "git/object.h"
+#include "git2/object.h"
#include "common.h"
#include "repository.h"
diff --git a/src/repository.h b/src/repository.h
index ca76d4558..1ac307c61 100644
--- a/src/repository.h
+++ b/src/repository.h
@@ -1,10 +1,10 @@
#ifndef INCLUDE_repository_h__
#define INCLUDE_repository_h__
-#include "git/common.h"
-#include "git/oid.h"
-#include "git/odb.h"
-#include "git/repository.h"
+#include "git2/common.h"
+#include "git2/oid.h"
+#include "git2/odb.h"
+#include "git2/repository.h"
#include "hashtable.h"
#include "index.h"
diff --git a/src/revwalk.h b/src/revwalk.h
index d97e5ce8c..7b69ccd63 100644
--- a/src/revwalk.h
+++ b/src/revwalk.h
@@ -1,8 +1,8 @@
#ifndef INCLUDE_revwalk_h__
#define INCLUDE_revwalk_h__
-#include "git/common.h"
-#include "git/revwalk.h"
+#include "git2/common.h"
+#include "git2/revwalk.h"
#include "commit.h"
#include "repository.h"
diff --git a/src/tag.c b/src/tag.c
index 23542999d..b5b8b9fc3 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -28,8 +28,8 @@
#include "tag.h"
#include "person.h"
#include "revwalk.h"
-#include "git/object.h"
-#include "git/repository.h"
+#include "git2/object.h"
+#include "git2/repository.h"
void git_tag__free(git_tag *tag)
{
diff --git a/src/tag.h b/src/tag.h
index fbf520868..dd84ff69b 100644
--- a/src/tag.h
+++ b/src/tag.h
@@ -1,7 +1,7 @@
#ifndef INCLUDE_tag_h__
#define INCLUDE_tag_h__
-#include "git/tag.h"
+#include "git2/tag.h"
#include "repository.h"
struct git_tag {
diff --git a/src/tree.c b/src/tree.c
index 0fc309209..4655dc760 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -27,8 +27,8 @@
#include "commit.h"
#include "revwalk.h"
#include "tree.h"
-#include "git/repository.h"
-#include "git/object.h"
+#include "git2/repository.h"
+#include "git2/object.h"
int entry_search_cmp(const void *key, const void *array_member)
{
diff --git a/src/tree.h b/src/tree.h
index 84d02222f..5f532f887 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -1,7 +1,7 @@
#ifndef INCLUDE_tree_h__
#define INCLUDE_tree_h__
-#include <git/tree.h>
+#include "git2/tree.h"
#include "repository.h"
#include "vector.h"
diff --git a/src/vector.h b/src/vector.h
index 8239abade..305927a72 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -1,7 +1,7 @@
#ifndef INCLUDE_vector_h__
#define INCLUDE_vector_h__
-#include "git/common.h"
+#include "git2/common.h"
typedef int (*git_vector_cmp)(const void *, const void *);