diff options
author | Ben Straub <bs@github.com> | 2012-11-20 19:57:46 -0700 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-27 13:18:28 -0800 |
commit | f45d51ff8e04c6849413c13aedcf5abacc3c69bd (patch) | |
tree | dab9495e4954677f12475d8335cd2ea9e752f24e /tests-clar | |
parent | d9023dbe0cb5d47e30d86149701b7be9006f7683 (diff) | |
download | libgit2-f45d51ff8e04c6849413c13aedcf5abacc3c69bd.tar.gz |
API updates for index.h
Diffstat (limited to 'tests-clar')
-rw-r--r-- | tests-clar/attr/repo.c | 2 | ||||
-rw-r--r-- | tests-clar/index/conflicts.c | 6 | ||||
-rw-r--r-- | tests-clar/index/filemodes.c | 4 | ||||
-rw-r--r-- | tests-clar/index/rename.c | 2 | ||||
-rw-r--r-- | tests-clar/index/stage.c | 4 | ||||
-rw-r--r-- | tests-clar/index/tests.c | 2 | ||||
-rw-r--r-- | tests-clar/object/commit/commitstagedfile.c | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/tests-clar/attr/repo.c b/tests-clar/attr/repo.c index b51d5e335..1d2b1e8df 100644 --- a/tests-clar/attr/repo.c +++ b/tests-clar/attr/repo.c @@ -267,7 +267,7 @@ static void add_to_workdir(const char *filename, const char *content) static void assert_proper_normalization(git_index *index, const char *filename, const char *expected_sha) { int index_pos; - git_index_entry *entry; + const git_index_entry *entry; add_to_workdir(filename, CONTENT); cl_git_pass(git_index_add_from_workdir(index, filename)); diff --git a/tests-clar/index/conflicts.c b/tests-clar/index/conflicts.c index 91ff926e5..790e06717 100644 --- a/tests-clar/index/conflicts.c +++ b/tests-clar/index/conflicts.c @@ -132,7 +132,7 @@ void test_index_conflicts__get(void) void test_index_conflicts__remove(void) { - git_index_entry *entry; + const git_index_entry *entry; size_t i; cl_assert(git_index_entrycount(repo_index) == 8); @@ -156,7 +156,7 @@ void test_index_conflicts__remove(void) void test_index_conflicts__moved_to_reuc(void) { - git_index_entry *entry; + const git_index_entry *entry; size_t i; cl_assert(git_index_entrycount(repo_index) == 8); @@ -178,7 +178,7 @@ void test_index_conflicts__moved_to_reuc(void) void test_index_conflicts__remove_all_conflicts(void) { size_t i; - git_index_entry *entry; + const git_index_entry *entry; cl_assert(git_index_entrycount(repo_index) == 8); diff --git a/tests-clar/index/filemodes.c b/tests-clar/index/filemodes.c index 882d41748..a2d5df605 100644 --- a/tests-clar/index/filemodes.c +++ b/tests-clar/index/filemodes.c @@ -25,7 +25,7 @@ void test_index_filemodes__read(void) cl_assert_equal_i(6, git_index_entrycount(index)); for (i = 0; i < 6; ++i) { - git_index_entry *entry = git_index_get_byindex(index, i); + const git_index_entry *entry = git_index_get_byindex(index, i); cl_assert(entry != NULL); cl_assert(((entry->mode & 0100) ? 1 : 0) == expected[i]); } @@ -54,7 +54,7 @@ static void add_and_check_mode( git_index *index, const char *filename, unsigned int expect_mode) { int pos; - git_index_entry *entry; + const git_index_entry *entry; cl_git_pass(git_index_add_from_workdir(index, filename)); diff --git a/tests-clar/index/rename.c b/tests-clar/index/rename.c index e16ec00c1..adbbcfaac 100644 --- a/tests-clar/index/rename.c +++ b/tests-clar/index/rename.c @@ -7,7 +7,7 @@ void test_index_rename__single_file(void) git_index *index; int position; git_oid expected; - git_index_entry *entry; + const git_index_entry *entry; p_mkdir("rename", 0700); diff --git a/tests-clar/index/stage.c b/tests-clar/index/stage.c index 9c9d29660..0f3b29832 100644 --- a/tests-clar/index/stage.c +++ b/tests-clar/index/stage.c @@ -27,7 +27,7 @@ void test_index_stage__cleanup(void) void test_index_stage__add_always_adds_stage_0(void) { int entry_idx; - git_index_entry *entry; + const git_index_entry *entry; cl_git_mkfile("./mergedrepo/new-file.txt", "new-file\n"); @@ -41,7 +41,7 @@ void test_index_stage__add_always_adds_stage_0(void) void test_index_stage__find_gets_first_stage(void) { int entry_idx; - git_index_entry *entry; + const git_index_entry *entry; cl_assert((entry_idx = git_index_find(repo_index, "one.txt")) >= 0); cl_assert((entry = git_index_get_byindex(repo_index, entry_idx)) != NULL); diff --git a/tests-clar/index/tests.c b/tests-clar/index/tests.c index 3b71b704d..4d613d693 100644 --- a/tests-clar/index/tests.c +++ b/tests-clar/index/tests.c @@ -208,7 +208,7 @@ void test_index_tests__add(void) git_index *index; git_filebuf file = GIT_FILEBUF_INIT; git_repository *repo; - git_index_entry *entry; + const git_index_entry *entry; git_oid id1; /* Intialize a new repository */ diff --git a/tests-clar/object/commit/commitstagedfile.c b/tests-clar/object/commit/commitstagedfile.c index 6dc536e3a..55c70d98e 100644 --- a/tests-clar/object/commit/commitstagedfile.c +++ b/tests-clar/object/commit/commitstagedfile.c @@ -21,7 +21,7 @@ void test_object_commit_commitstagedfile__cleanup(void) void test_object_commit_commitstagedfile__generate_predictable_object_ids(void) { git_index *index; - git_index_entry *entry; + const git_index_entry *entry; git_oid expected_blob_oid, tree_oid, expected_tree_oid, commit_oid, expected_commit_oid; git_signature *signature; git_tree *tree; |