diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-01-24 14:36:41 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-01-25 11:15:44 +0400 |
commit | d541170c77b7ac738e2ffcdd04c838fb7cbbfb87 (patch) | |
tree | b4c829668eb8a1aa8db798bfdd31e95bb1a946e0 /tests/checkout | |
parent | d0a3de720e085d335d9ad46dc00a23dd03eda793 (diff) |
index: rename an entry's id to 'id'
This was not converted when we converted the rest, so do it now.
Diffstat (limited to 'tests/checkout')
-rw-r--r-- | tests/checkout/conflict.c | 2 | ||||
-rw-r--r-- | tests/checkout/crlf.c | 4 | ||||
-rw-r--r-- | tests/checkout/tree.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/checkout/conflict.c b/tests/checkout/conflict.c index 66965a89b..a8b93b28d 100644 --- a/tests/checkout/conflict.c +++ b/tests/checkout/conflict.c @@ -96,7 +96,7 @@ static void create_index(struct checkout_index_entry *entries, size_t entries_le entry.mode = entries[i].mode; entry.flags = entries[i].stage << GIT_IDXENTRY_STAGESHIFT; - git_oid_fromstr(&entry.oid, entries[i].oid_str); + git_oid_fromstr(&entry.id, entries[i].oid_str); entry.path = entries[i].path; cl_git_pass(git_index_add(g_index, &entry)); diff --git a/tests/checkout/crlf.c b/tests/checkout/crlf.c index 9a4cbd313..cba79432f 100644 --- a/tests/checkout/crlf.c +++ b/tests/checkout/crlf.c @@ -174,13 +174,13 @@ void test_checkout_crlf__with_ident(void) /* check that blobs have $Id$ */ cl_git_pass(git_blob_lookup(&blob, g_repo, - & git_index_get_bypath(index, "lf.ident", 0)->oid)); + & git_index_get_bypath(index, "lf.ident", 0)->id)); cl_assert_equal_s( ALL_LF_TEXT_RAW "\n$Id$\n", git_blob_rawcontent(blob)); git_blob_free(blob); cl_git_pass(git_blob_lookup(&blob, g_repo, - & git_index_get_bypath(index, "more2.identcrlf", 0)->oid)); + & git_index_get_bypath(index, "more2.identcrlf", 0)->id)); cl_assert_equal_s( "\n$Id$\n" MORE_CRLF_TEXT_AS_LF, git_blob_rawcontent(blob)); git_blob_free(blob); diff --git a/tests/checkout/tree.c b/tests/checkout/tree.c index 047c9ed98..3c731c5ae 100644 --- a/tests/checkout/tree.c +++ b/tests/checkout/tree.c @@ -892,16 +892,16 @@ static void create_conflict(void) memset(&entry, 0x0, sizeof(git_index_entry)); entry.mode = 0100644; entry.flags = 1 << GIT_IDXENTRY_STAGESHIFT; - git_oid_fromstr(&entry.oid, "d427e0b2e138501a3d15cc376077a3631e15bd46"); + git_oid_fromstr(&entry.id, "d427e0b2e138501a3d15cc376077a3631e15bd46"); entry.path = "conflicts.txt"; cl_git_pass(git_index_add(index, &entry)); entry.flags = 2 << GIT_IDXENTRY_STAGESHIFT; - git_oid_fromstr(&entry.oid, "ee3fa1b8c00aff7fe02065fdb50864bb0d932ccf"); + git_oid_fromstr(&entry.id, "ee3fa1b8c00aff7fe02065fdb50864bb0d932ccf"); cl_git_pass(git_index_add(index, &entry)); entry.flags = 3 << GIT_IDXENTRY_STAGESHIFT; - git_oid_fromstr(&entry.oid, "2bd0a343aeef7a2cf0d158478966a6e587ff3863"); + git_oid_fromstr(&entry.id, "2bd0a343aeef7a2cf0d158478966a6e587ff3863"); cl_git_pass(git_index_add(index, &entry)); git_index_write(index); |