diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-12-06 23:03:16 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-12-06 23:03:16 +0200 |
commit | 44908fe763b1a2097b65c86130ac679c458df7d2 (patch) | |
tree | d4b2e597ec985cabff2236895c4515100a5063e4 /src | |
parent | d12299fe22e549a20e632668fdbe13cab9def9df (diff) | |
download | libgit2-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.c | 6 | ||||
-rw-r--r-- | src/blob.h | 2 | ||||
-rw-r--r-- | src/commit.c | 6 | ||||
-rw-r--r-- | src/commit.h | 2 | ||||
-rw-r--r-- | src/common.h | 4 | ||||
-rw-r--r-- | src/delta-apply.c | 2 | ||||
-rw-r--r-- | src/errors.h | 2 | ||||
-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.h | 2 | ||||
-rw-r--r-- | src/hashtable.h | 6 | ||||
-rw-r--r-- | src/index.c | 4 | ||||
-rw-r--r-- | src/index.h | 4 | ||||
-rw-r--r-- | src/odb.c | 6 | ||||
-rw-r--r-- | src/odb.h | 4 | ||||
-rw-r--r-- | src/odb_loose.c | 6 | ||||
-rw-r--r-- | src/odb_pack.c | 6 | ||||
-rw-r--r-- | src/oid.c | 2 | ||||
-rw-r--r-- | src/person.c | 2 | ||||
-rw-r--r-- | src/person.h | 2 | ||||
-rw-r--r-- | src/repository.c | 2 | ||||
-rw-r--r-- | src/repository.h | 8 | ||||
-rw-r--r-- | src/revwalk.h | 4 | ||||
-rw-r--r-- | src/tag.c | 4 | ||||
-rw-r--r-- | src/tag.h | 2 | ||||
-rw-r--r-- | src/tree.c | 4 | ||||
-rw-r--r-- | src/tree.h | 2 | ||||
-rw-r--r-- | src/vector.h | 2 |
43 files changed, 62 insertions, 62 deletions
@@ -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" @@ -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 9e3cd330..ef3d80b5 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 617d237f..eca566dd 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 ff87c872..821ee884 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 769e9734..16f26be4 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 94093ddb..d22a03b3 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) @@ -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 f94b1f96..f94b1f96 100644 --- a/src/git/blob.h +++ b/src/git2/blob.h diff --git a/src/git/commit.h b/src/git2/commit.h index 54ecb622..54ecb622 100644 --- a/src/git/commit.h +++ b/src/git2/commit.h diff --git a/src/git/common.h b/src/git2/common.h index 0a7de41e..0a7de41e 100644 --- a/src/git/common.h +++ b/src/git2/common.h diff --git a/src/git/errors.h b/src/git2/errors.h index f4720beb..f4720beb 100644 --- a/src/git/errors.h +++ b/src/git2/errors.h diff --git a/src/git/index.h b/src/git2/index.h index 8bdced6a..8bdced6a 100644 --- a/src/git/index.h +++ b/src/git2/index.h diff --git a/src/git/object.h b/src/git2/object.h index 51659172..51659172 100644 --- a/src/git/object.h +++ b/src/git2/object.h diff --git a/src/git/odb.h b/src/git2/odb.h index 6be6ea2c..6be6ea2c 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 747f4e97..747f4e97 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 f0e39da6..f0e39da6 100644 --- a/src/git/oid.h +++ b/src/git2/oid.h diff --git a/src/git/repository.h b/src/git2/repository.h index 683e78fc..683e78fc 100644 --- a/src/git/repository.h +++ b/src/git2/repository.h diff --git a/src/git/revwalk.h b/src/git2/revwalk.h index 6a761088..6a761088 100644 --- a/src/git/revwalk.h +++ b/src/git2/revwalk.h diff --git a/src/git/tag.h b/src/git2/tag.h index d5700987..d5700987 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 241514f3..241514f3 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 d935169d..d935169d 100644 --- a/src/git/tree.h +++ b/src/git2/tree.h diff --git a/src/git/types.h b/src/git2/types.h index 18684e13..18684e13 100644 --- a/src/git/types.h +++ b/src/git2/types.h diff --git a/src/git/zlib.h b/src/git2/zlib.h index b68db9bc..b68db9bc 100644 --- a/src/git/zlib.h +++ b/src/git2/zlib.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 cd390b9e..69535040 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 da22f706..3c2bbf8c 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 f548c7b6..9e45a637 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; @@ -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) { @@ -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 a7d0d5c8..b031bde3 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 82b8f147..d59c419a 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. * @@ -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 9410913a..e93e1b82 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 334b184e..7a9fcb75 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 9a356371..b28c4ac9 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 ca76d455..1ac307c6 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 d97e5ce8..7b69ccd6 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" @@ -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) { @@ -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 { @@ -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) { @@ -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 8239abad..305927a7 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 *); |