Lines Matching refs:repo_index

7 static git_index *repo_index;  variable
16 git_repository_index(&repo_index, repo); in test_index_conflicts__initialize()
21 git_index_free(repo_index); in test_index_conflicts__cleanup()
22 repo_index = NULL; in test_index_conflicts__cleanup()
31 cl_assert(git_index_entrycount(repo_index) == 8); in test_index_conflicts__add()
52 cl_git_pass(git_index_conflict_add(repo_index, &ancestor_entry, &our_entry, &their_entry)); in test_index_conflicts__add()
54 cl_assert(git_index_entrycount(repo_index) == 11); in test_index_conflicts__add()
62 cl_assert(git_index_entrycount(repo_index) == 8); in test_index_conflicts__add_fixes_incorrect_stage()
83 cl_git_pass(git_index_conflict_add(repo_index, &ancestor_entry, &our_entry, &their_entry)); in test_index_conflicts__add_fixes_incorrect_stage()
85 cl_assert(git_index_entrycount(repo_index) == 11); in test_index_conflicts__add_fixes_incorrect_stage()
87 …nflict_get(&conflict_entry[0], &conflict_entry[1], &conflict_entry[2], repo_index, "test-one.txt")… in test_index_conflicts__add_fixes_incorrect_stage()
100 cl_assert(git_index_entrycount(repo_index) == 8); in test_index_conflicts__add_detects_invalid_filemode()
129 cl_git_fail(git_index_conflict_add(repo_index, &ancestor_entry, &our_entry, &their_entry)); in test_index_conflicts__add_detects_invalid_filemode()
132 cl_assert(git_index_entrycount(repo_index) == 8); in test_index_conflicts__add_detects_invalid_filemode()
141 cl_assert(git_index_entrycount(repo_index) == 8); in test_index_conflicts__add_removes_stage_zero()
148 cl_git_pass(git_index_add_bypath(repo_index, "test-one.txt")); in test_index_conflicts__add_removes_stage_zero()
149 cl_assert(git_index_entrycount(repo_index) == 9); in test_index_conflicts__add_removes_stage_zero()
166 cl_git_pass(git_index_conflict_add(repo_index, &ancestor_entry, &our_entry, &their_entry)); in test_index_conflicts__add_removes_stage_zero()
168 cl_assert(git_index_entrycount(repo_index) == 11); in test_index_conflicts__add_removes_stage_zero()
170 cl_assert_equal_p(NULL, git_index_get_bypath(repo_index, "test-one.txt", 0)); in test_index_conflicts__add_removes_stage_zero()
172 …nflict_get(&conflict_entry[0], &conflict_entry[1], &conflict_entry[2], repo_index, "test-one.txt")… in test_index_conflicts__add_removes_stage_zero()
188 &conflict_entry[2], repo_index, "conflicts-one.txt")); in test_index_conflicts__get()
202 &conflict_entry[2], repo_index, "conflicts-two.txt")); in test_index_conflicts__get()
222 cl_git_pass(git_index_conflict_iterator_new(&iterator, repo_index)); in test_index_conflicts__iterate()
266 cl_assert(git_index_entrycount(repo_index) == 8); in test_index_conflicts__remove()
268 cl_git_pass(git_index_conflict_remove(repo_index, "conflicts-one.txt")); in test_index_conflicts__remove()
269 cl_assert(git_index_entrycount(repo_index) == 5); in test_index_conflicts__remove()
271 for (i = 0; i < git_index_entrycount(repo_index); i++) { in test_index_conflicts__remove()
272 cl_assert(entry = git_index_get_byindex(repo_index, i)); in test_index_conflicts__remove()
276 cl_git_pass(git_index_conflict_remove(repo_index, "conflicts-two.txt")); in test_index_conflicts__remove()
277 cl_assert(git_index_entrycount(repo_index) == 2); in test_index_conflicts__remove()
279 for (i = 0; i < git_index_entrycount(repo_index); i++) { in test_index_conflicts__remove()
280 cl_assert(entry = git_index_get_byindex(repo_index, i)); in test_index_conflicts__remove()
290 cl_assert(git_index_entrycount(repo_index) == 8); in test_index_conflicts__moved_to_reuc_on_add()
294 cl_git_pass(git_index_add_bypath(repo_index, "conflicts-one.txt")); in test_index_conflicts__moved_to_reuc_on_add()
296 cl_assert(git_index_entrycount(repo_index) == 6); in test_index_conflicts__moved_to_reuc_on_add()
298 for (i = 0; i < git_index_entrycount(repo_index); i++) { in test_index_conflicts__moved_to_reuc_on_add()
299 cl_assert(entry = git_index_get_byindex(repo_index, i)); in test_index_conflicts__moved_to_reuc_on_add()
311 cl_assert(git_index_entrycount(repo_index) == 8); in test_index_conflicts__moved_to_reuc_on_remove()
315 cl_git_pass(git_index_remove_bypath(repo_index, "conflicts-one.txt")); in test_index_conflicts__moved_to_reuc_on_remove()
317 cl_assert(git_index_entrycount(repo_index) == 5); in test_index_conflicts__moved_to_reuc_on_remove()
319 for (i = 0; i < git_index_entrycount(repo_index); i++) { in test_index_conflicts__moved_to_reuc_on_remove()
320 cl_assert(entry = git_index_get_byindex(repo_index, i)); in test_index_conflicts__moved_to_reuc_on_remove()
330 cl_assert(git_index_entrycount(repo_index) == 8); in test_index_conflicts__remove_all_conflicts()
332 cl_assert_equal_i(true, git_index_has_conflicts(repo_index)); in test_index_conflicts__remove_all_conflicts()
334 git_index_conflict_cleanup(repo_index); in test_index_conflicts__remove_all_conflicts()
336 cl_assert_equal_i(false, git_index_has_conflicts(repo_index)); in test_index_conflicts__remove_all_conflicts()
338 cl_assert(git_index_entrycount(repo_index) == 2); in test_index_conflicts__remove_all_conflicts()
340 for (i = 0; i < git_index_entrycount(repo_index); i++) { in test_index_conflicts__remove_all_conflicts()
341 cl_assert(entry = git_index_get_byindex(repo_index, i)); in test_index_conflicts__remove_all_conflicts()
351 cl_assert(git_index_entrycount(repo_index) == 8); in test_index_conflicts__partial()
362 cl_git_pass(git_index_conflict_add(repo_index, &ancestor_entry, NULL, NULL)); in test_index_conflicts__partial()
363 cl_assert(git_index_entrycount(repo_index) == 9); in test_index_conflicts__partial()
366 &conflict_entry[2], repo_index, "test-one.txt")); in test_index_conflicts__partial()
403 cl_git_pass(git_index_conflict_add(repo_index, in test_index_conflicts__case_matters()
421 cl_git_pass(git_index_conflict_add(repo_index, in test_index_conflicts__case_matters()
425 &conflict_entry[2], repo_index, upper_case)); in test_index_conflicts__case_matters()
449 &conflict_entry[2], repo_index, mixed_case)); in test_index_conflicts__case_matters()