summaryrefslogtreecommitdiff
path: root/tests/checkout/tree.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-05-19 11:17:07 -0400
committerEdward Thomson <ethomson@microsoft.com>2015-05-28 09:44:22 -0400
commit2f1080ea04ad1235efcd4b213dbe3a1b847644f7 (patch)
tree1a7a8a74633de14577af757012bd8738d89c3369 /tests/checkout/tree.c
parent191e97a02b3360820177ed7642116796551ce1f6 (diff)
downloadlibgit2-2f1080ea04ad1235efcd4b213dbe3a1b847644f7.tar.gz
conflict tests: use GIT_IDXENTRY_STAGE_SET
Diffstat (limited to 'tests/checkout/tree.c')
-rw-r--r--tests/checkout/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/checkout/tree.c b/tests/checkout/tree.c
index 50541a703..462323186 100644
--- a/tests/checkout/tree.c
+++ b/tests/checkout/tree.c
@@ -893,16 +893,16 @@ static void create_conflict(const char *path)
memset(&entry, 0x0, sizeof(git_index_entry));
entry.mode = 0100644;
- entry.flags = 1 << GIT_IDXENTRY_STAGESHIFT;
+ GIT_IDXENTRY_STAGE_SET(&entry, 1);
git_oid_fromstr(&entry.id, "d427e0b2e138501a3d15cc376077a3631e15bd46");
entry.path = path;
cl_git_pass(git_index_add(index, &entry));
- entry.flags = 2 << GIT_IDXENTRY_STAGESHIFT;
+ GIT_IDXENTRY_STAGE_SET(&entry, 2);
git_oid_fromstr(&entry.id, "ee3fa1b8c00aff7fe02065fdb50864bb0d932ccf");
cl_git_pass(git_index_add(index, &entry));
- entry.flags = 3 << GIT_IDXENTRY_STAGESHIFT;
+ GIT_IDXENTRY_STAGE_SET(&entry, 3);
git_oid_fromstr(&entry.id, "2bd0a343aeef7a2cf0d158478966a6e587ff3863");
cl_git_pass(git_index_add(index, &entry));