]> git.proxmox.com Git - libgit2.git/blobdiff - tests/merge/trees/automerge.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / merge / trees / automerge.c
index c18881d7c5888a360a2ed9e6d15a6adac32acf67..3bf6c5208442f002989fab4573ac57dfc1b652c2 100644 (file)
@@ -1,10 +1,10 @@
 #include "clar_libgit2.h"
 #include "git2/repository.h"
 #include "git2/merge.h"
-#include "buffer.h"
 #include "merge.h"
+#include "futils.h"
 #include "../merge_helpers.h"
-#include "fileops.h"
+#include "../conflict_data.h"
 
 static git_repository *repo;
 
@@ -54,7 +54,7 @@ static git_repository *repo;
          "", \
          "5c3b68a71fc4fa5d362fd3875e53137c6a5ab7a5" }
 
-// Fixture setup and teardown
+/* Fixture setup and teardown */
 void test_merge_trees_automerge__initialize(void)
 {
        repo = cl_git_sandbox_init(TEST_REPO_PATH);
@@ -99,7 +99,7 @@ void test_merge_trees_automerge__automerge(void)
        cl_assert((entry = git_index_get_bypath(index, "automergeable.txt", 0)) != NULL);
        cl_assert(entry->file_size == strlen(AUTOMERGEABLE_MERGED_FILE));
 
-       cl_git_pass(git_object_lookup((git_object **)&blob, repo, &entry->id, GIT_OBJ_BLOB));
+       cl_git_pass(git_object_lookup((git_object **)&blob, repo, &entry->id, GIT_OBJECT_BLOB));
        cl_assert(memcmp(git_blob_rawcontent(blob), AUTOMERGEABLE_MERGED_FILE, (size_t)entry->file_size) == 0);
 
        git_index_free(index);