summaryrefslogtreecommitdiff
path: root/src/status.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-01-24 20:23:17 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-01-25 08:15:44 +0100
commit9950bb4e8de076565976128559ff273e9d4a2a78 (patch)
tree6514d51afd8a447c1cfdf86eece2ae28df2e1fa4 /src/status.c
parentf000ee4e5b840e9f110123a050777fb1301b19bf (diff)
downloadlibgit2-9950bb4e8de076565976128559ff273e9d4a2a78.tar.gz
diff: rename the file's 'oid' to 'id'
In the same vein as the previous commits in this series.
Diffstat (limited to 'src/status.c')
-rw-r--r--src/status.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/status.c b/src/status.c
index 7a1472d8d..3c95b347c 100644
--- a/src/status.c
+++ b/src/status.c
@@ -38,7 +38,7 @@ static unsigned int index_delta2status(const git_diff_delta *head2idx)
case GIT_DELTA_RENAMED:
st = GIT_STATUS_INDEX_RENAMED;
- if (!git_oid_equal(&head2idx->old_file.oid, &head2idx->new_file.oid))
+ if (!git_oid_equal(&head2idx->old_file.id, &head2idx->new_file.id))
st |= GIT_STATUS_INDEX_MODIFIED;
break;
case GIT_DELTA_TYPECHANGE:
@@ -74,25 +74,25 @@ static unsigned int workdir_delta2status(
case GIT_DELTA_RENAMED:
st = GIT_STATUS_WT_RENAMED;
- if (!git_oid_equal(&idx2wd->old_file.oid, &idx2wd->new_file.oid)) {
+ if (!git_oid_equal(&idx2wd->old_file.id, &idx2wd->new_file.id)) {
/* if OIDs don't match, we might need to calculate them now to
* discern between RENAMED vs RENAMED+MODIFED
*/
- if (git_oid_iszero(&idx2wd->old_file.oid) &&
+ if (git_oid_iszero(&idx2wd->old_file.id) &&
diff->old_src == GIT_ITERATOR_TYPE_WORKDIR &&
!git_diff__oid_for_file(
diff->repo, idx2wd->old_file.path, idx2wd->old_file.mode,
- idx2wd->old_file.size, &idx2wd->old_file.oid))
- idx2wd->old_file.flags |= GIT_DIFF_FLAG_VALID_OID;
+ idx2wd->old_file.size, &idx2wd->old_file.id))
+ idx2wd->old_file.flags |= GIT_DIFF_FLAG_VALID_ID;
- if (git_oid_iszero(&idx2wd->new_file.oid) &&
+ if (git_oid_iszero(&idx2wd->new_file.id) &&
diff->new_src == GIT_ITERATOR_TYPE_WORKDIR &&
!git_diff__oid_for_file(
diff->repo, idx2wd->new_file.path, idx2wd->new_file.mode,
- idx2wd->new_file.size, &idx2wd->new_file.oid))
- idx2wd->new_file.flags |= GIT_DIFF_FLAG_VALID_OID;
+ idx2wd->new_file.size, &idx2wd->new_file.id))
+ idx2wd->new_file.flags |= GIT_DIFF_FLAG_VALID_ID;
- if (!git_oid_equal(&idx2wd->old_file.oid, &idx2wd->new_file.oid))
+ if (!git_oid_equal(&idx2wd->old_file.id, &idx2wd->new_file.id))
st |= GIT_STATUS_WT_MODIFIED;
}
break;