summaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/t0101-hash.c2
-rw-r--r--tests/t0101-oid.c2
-rw-r--r--tests/t0102-objtype.c4
-rw-r--r--tests/t0103-objhash.c2
-rw-r--r--tests/t0201-existsloose.c2
-rw-r--r--tests/t0202-readloose.c2
-rw-r--r--tests/t0203-readloose.c2
-rw-r--r--tests/t0204-readpack.c2
-rw-r--r--tests/t0205-readheader.c2
-rw-r--r--tests/t0301-write.c2
-rw-r--r--tests/t0401-parse.c6
-rw-r--r--tests/t0402-details.c6
-rw-r--r--tests/t0403-write.c6
-rw-r--r--tests/t0501-walk.c6
-rw-r--r--tests/t0502-list.c4
-rw-r--r--tests/t0601-read.c4
-rw-r--r--tests/t0602-write.c4
-rw-r--r--tests/t0603-sort.c4
-rw-r--r--tests/t0801-readtag.c6
-rw-r--r--tests/t0802-write.c6
-rw-r--r--tests/t0901-readtree.c6
-rw-r--r--tests/t0902-modify.c6
-rw-r--r--tests/test_helpers.h2
-rw-r--r--tests/test_lib.h2
24 files changed, 45 insertions, 45 deletions
diff --git a/tests/t0101-hash.c b/tests/t0101-hash.c
index 6e9df7119..84f15f725 100644
--- a/tests/t0101-hash.c
+++ b/tests/t0101-hash.c
@@ -1,6 +1,6 @@
#include "test_lib.h"
#include "hash.h"
-#include <git/oid.h>
+#include <git2/oid.h>
static char *hello_id = "22596363b3de40b06f981fb85d82312e8c0ed511";
static char *hello_text = "hello world\n";
diff --git a/tests/t0101-oid.c b/tests/t0101-oid.c
index 3f61a7570..8341c7b45 100644
--- a/tests/t0101-oid.c
+++ b/tests/t0101-oid.c
@@ -1,5 +1,5 @@
#include "test_lib.h"
-#include <git/oid.h>
+#include <git2/oid.h>
BEGIN_TEST(oid_szs)
git_oid out;
diff --git a/tests/t0102-objtype.c b/tests/t0102-objtype.c
index ec4e15d44..8398e83e8 100644
--- a/tests/t0102-objtype.c
+++ b/tests/t0102-objtype.c
@@ -1,7 +1,7 @@
#include "test_lib.h"
-#include <git/odb.h>
-#include <git/object.h>
+#include <git2/odb.h>
+#include <git2/object.h>
BEGIN_TEST(type_to_string)
must_be_true(!strcmp(git_object_type2string(GIT_OBJ_BAD), ""));
diff --git a/tests/t0103-objhash.c b/tests/t0103-objhash.c
index 94c5e85af..58e7d06f2 100644
--- a/tests/t0103-objhash.c
+++ b/tests/t0103-objhash.c
@@ -1,6 +1,6 @@
#include "test_lib.h"
-#include <git/odb.h>
+#include <git2/odb.h>
static char *commit_id = "3d7f8a6af076c8c3f20071a8935cdbe8228594d1";
diff --git a/tests/t0201-existsloose.c b/tests/t0201-existsloose.c
index 0c7fda8e4..4836c8576 100644
--- a/tests/t0201-existsloose.c
+++ b/tests/t0201-existsloose.c
@@ -1,6 +1,6 @@
#include "test_lib.h"
#include "test_helpers.h"
-#include <git/odb.h>
+#include <git2/odb.h>
static char *odb_dir = "test-objects";
diff --git a/tests/t0202-readloose.c b/tests/t0202-readloose.c
index 9956b3cd9..c822c6687 100644
--- a/tests/t0202-readloose.c
+++ b/tests/t0202-readloose.c
@@ -1,7 +1,7 @@
#include "test_lib.h"
#include "test_helpers.h"
-#include <git/odb.h>
+#include <git2/odb.h>
/*
* read loose objects from the object directory. The objects are
diff --git a/tests/t0203-readloose.c b/tests/t0203-readloose.c
index 3b1728b5a..86a57cb94 100644
--- a/tests/t0203-readloose.c
+++ b/tests/t0203-readloose.c
@@ -1,7 +1,7 @@
#include "test_lib.h"
#include "test_helpers.h"
-#include <git/odb.h>
+#include <git2/odb.h>
/*
* read loose objects from the object directory. The objects are
diff --git a/tests/t0204-readpack.c b/tests/t0204-readpack.c
index a7c8db7e0..0e386d7b3 100644
--- a/tests/t0204-readpack.c
+++ b/tests/t0204-readpack.c
@@ -1,6 +1,6 @@
#include "test_lib.h"
#include "test_helpers.h"
-#include <git/odb.h>
+#include <git2/odb.h>
static const char *packed_objects[] = {
"0266163a49e280c4f5ed1e08facd36a2bd716bcf",
diff --git a/tests/t0205-readheader.c b/tests/t0205-readheader.c
index f82e57c44..d8a185e8d 100644
--- a/tests/t0205-readheader.c
+++ b/tests/t0205-readheader.c
@@ -1,6 +1,6 @@
#include "test_lib.h"
#include "test_helpers.h"
-#include <git/odb.h>
+#include <git2/odb.h>
static const char *packed_objects[] = {
"0266163a49e280c4f5ed1e08facd36a2bd716bcf",
diff --git a/tests/t0301-write.c b/tests/t0301-write.c
index e0bbae1b8..d66b24aff 100644
--- a/tests/t0301-write.c
+++ b/tests/t0301-write.c
@@ -1,6 +1,6 @@
#include "test_lib.h"
-#include <git/odb.h>
+#include <git2/odb.h>
#include "fileops.h"
static char *odb_dir = "test-objects";
diff --git a/tests/t0401-parse.c b/tests/t0401-parse.c
index fc5aeff7b..b82a9b168 100644
--- a/tests/t0401-parse.c
+++ b/tests/t0401-parse.c
@@ -2,9 +2,9 @@
#include "test_helpers.h"
#include "commit.h"
#include "person.h"
-#include <git/odb.h>
-#include <git/commit.h>
-#include <git/revwalk.h>
+#include <git2/odb.h>
+#include <git2/commit.h>
+#include <git2/revwalk.h>
static char *test_commits_broken[] = {
diff --git a/tests/t0402-details.c b/tests/t0402-details.c
index d97917a44..489b3ff67 100644
--- a/tests/t0402-details.c
+++ b/tests/t0402-details.c
@@ -3,9 +3,9 @@
#include "commit.h"
#include "person.h"
-#include <git/odb.h>
-#include <git/commit.h>
-#include <git/revwalk.h>
+#include <git2/odb.h>
+#include <git2/commit.h>
+#include <git2/revwalk.h>
static const char *commit_ids[] = {
"a4a7dce85cf63874e984719f4fdd239f5145052f", /* 0 */
diff --git a/tests/t0403-write.c b/tests/t0403-write.c
index dfafca6f6..8b29b05ea 100644
--- a/tests/t0403-write.c
+++ b/tests/t0403-write.c
@@ -3,9 +3,9 @@
#include "commit.h"
#include "person.h"
-#include <git/odb.h>
-#include <git/commit.h>
-#include <git/revwalk.h>
+#include <git2/odb.h>
+#include <git2/commit.h>
+#include <git2/revwalk.h>
static const char *commit_ids[] = {
"a4a7dce85cf63874e984719f4fdd239f5145052f", /* 0 */
diff --git a/tests/t0501-walk.c b/tests/t0501-walk.c
index 4b90e07e5..ae56e561c 100644
--- a/tests/t0501-walk.c
+++ b/tests/t0501-walk.c
@@ -2,9 +2,9 @@
#include "test_helpers.h"
#include "commit.h"
-#include <git/odb.h>
-#include <git/commit.h>
-#include <git/revwalk.h>
+#include <git2/odb.h>
+#include <git2/commit.h>
+#include <git2/revwalk.h>
/*
$ git log --oneline --graph --decorate
diff --git a/tests/t0502-list.c b/tests/t0502-list.c
index 830809961..04427f51a 100644
--- a/tests/t0502-list.c
+++ b/tests/t0502-list.c
@@ -2,8 +2,8 @@
#include "test_helpers.h"
#include "commit.h"
#include "revwalk.h"
-#include <git/odb.h>
-#include <git/commit.h>
+#include <git2/odb.h>
+#include <git2/commit.h>
BEGIN_TEST(list_timesort_test)
diff --git a/tests/t0601-read.c b/tests/t0601-read.c
index 6ddb5fba8..0aaa6e39f 100644
--- a/tests/t0601-read.c
+++ b/tests/t0601-read.c
@@ -2,8 +2,8 @@
#include "test_helpers.h"
#include "index.h"
-#include <git/odb.h>
-#include <git/index.h>
+#include <git2/odb.h>
+#include <git2/index.h>
#define TEST_INDEX_PATH "../resources/testrepo.git/index"
#define TEST_INDEX2_PATH "../resources/gitgit.index"
diff --git a/tests/t0602-write.c b/tests/t0602-write.c
index 6463773fb..247aae9e2 100644
--- a/tests/t0602-write.c
+++ b/tests/t0602-write.c
@@ -2,8 +2,8 @@
#include "test_helpers.h"
#include "index.h"
-#include <git/odb.h>
-#include <git/index.h>
+#include <git2/odb.h>
+#include <git2/index.h>
#define TEST_INDEX_PATH "../resources/testrepo.git/index"
diff --git a/tests/t0603-sort.c b/tests/t0603-sort.c
index 954394f19..1b32a5da5 100644
--- a/tests/t0603-sort.c
+++ b/tests/t0603-sort.c
@@ -2,8 +2,8 @@
#include "test_helpers.h"
#include "index.h"
-#include <git/odb.h>
-#include <git/index.h>
+#include <git2/odb.h>
+#include <git2/index.h>
#define TEST_INDEX_PATH "../t0600-objects/index"
diff --git a/tests/t0801-readtag.c b/tests/t0801-readtag.c
index 8314304bd..5d079890e 100644
--- a/tests/t0801-readtag.c
+++ b/tests/t0801-readtag.c
@@ -2,9 +2,9 @@
#include "test_helpers.h"
#include "commit.h"
-#include <git/odb.h>
-#include <git/commit.h>
-#include <git/tag.h>
+#include <git2/odb.h>
+#include <git2/commit.h>
+#include <git2/tag.h>
static const char *tag1_id = "b25fa35b38051e4ae45d4222e795f9df2e43f1d1";
static const char *tag2_id = "7b4384978d2493e851f9cca7858815fac9b10980";
diff --git a/tests/t0802-write.c b/tests/t0802-write.c
index 8dd8de5ea..6364b96ff 100644
--- a/tests/t0802-write.c
+++ b/tests/t0802-write.c
@@ -2,9 +2,9 @@
#include "test_helpers.h"
#include "commit.h"
-#include <git/odb.h>
-#include <git/tag.h>
-#include <git/revwalk.h>
+#include <git2/odb.h>
+#include <git2/tag.h>
+#include <git2/revwalk.h>
static const char *tag_id = "b25fa35b38051e4ae45d4222e795f9df2e43f1d1";
diff --git a/tests/t0901-readtree.c b/tests/t0901-readtree.c
index c14f5fd1f..c1b970413 100644
--- a/tests/t0901-readtree.c
+++ b/tests/t0901-readtree.c
@@ -2,9 +2,9 @@
#include "test_helpers.h"
#include "commit.h"
-#include <git/odb.h>
-#include <git/commit.h>
-#include <git/revwalk.h>
+#include <git2/odb.h>
+#include <git2/commit.h>
+#include <git2/revwalk.h>
static const char *tree_oid = "1810dff58d8a660512d4832e740f692884338ccd";
diff --git a/tests/t0902-modify.c b/tests/t0902-modify.c
index a83349df9..893b9b30b 100644
--- a/tests/t0902-modify.c
+++ b/tests/t0902-modify.c
@@ -2,9 +2,9 @@
#include "test_helpers.h"
#include "commit.h"
-#include <git/odb.h>
-#include <git/commit.h>
-#include <git/revwalk.h>
+#include <git2/odb.h>
+#include <git2/commit.h>
+#include <git2/revwalk.h>
static const char *tree_oid = "1810dff58d8a660512d4832e740f692884338ccd";
diff --git a/tests/test_helpers.h b/tests/test_helpers.h
index d6d32140e..6574e39b3 100644
--- a/tests/test_helpers.h
+++ b/tests/test_helpers.h
@@ -27,7 +27,7 @@
#define INCLUDE_test_helpers_h__
#include "test_lib.h"
-#include <git.h>
+#include <git2.h>
#define ODB_FOLDER "../resources/testrepo.git/objects/"
#define REPOSITORY_FOLDER "../resources/testrepo.git/"
diff --git a/tests/test_lib.h b/tests/test_lib.h
index 78f992332..77c62924d 100644
--- a/tests/test_lib.h
+++ b/tests/test_lib.h
@@ -24,7 +24,7 @@
*/
#include "common.h"
-#include <git/common.h>
+#include <git2/common.h>
#include <stdio.h>
#include <stdlib.h>