diff options
author | Vicent Martà <vicent@github.com> | 2013-04-30 04:02:52 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-04-30 04:02:52 -0700 |
commit | cd2ed9f0cc9d8e0e1724304e946adb28271e0669 (patch) | |
tree | cdf9e1dade9f0d6e0317735ac2d40d81ff074c16 /src/diff.c | |
parent | d76fb20ebce03b2fd87c2472d556bf9b64894efd (diff) | |
parent | 203d5b0e6829242ea412bbef7751e3c522ac5dd8 (diff) | |
download | libgit2-cd2ed9f0cc9d8e0e1724304e946adb28271e0669.tar.gz |
Merge pull request #1518 from arrbee/export-oid-comparison
Remove most inlines from the public API
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/diff.c b/src/diff.c index 881173cde..6612abf06 100644 --- a/src/diff.c +++ b/src/diff.c @@ -196,21 +196,21 @@ static git_diff_delta *diff_delta__last_for_item( switch (delta->status) { case GIT_DELTA_UNMODIFIED: case GIT_DELTA_DELETED: - if (git_oid_cmp(&delta->old_file.oid, &item->oid) == 0) + if (git_oid__cmp(&delta->old_file.oid, &item->oid) == 0) return delta; break; case GIT_DELTA_ADDED: - if (git_oid_cmp(&delta->new_file.oid, &item->oid) == 0) + if (git_oid__cmp(&delta->new_file.oid, &item->oid) == 0) return delta; break; case GIT_DELTA_UNTRACKED: if (diff->strcomp(delta->new_file.path, item->path) == 0 && - git_oid_cmp(&delta->new_file.oid, &item->oid) == 0) + git_oid__cmp(&delta->new_file.oid, &item->oid) == 0) return delta; break; case GIT_DELTA_MODIFIED: - if (git_oid_cmp(&delta->old_file.oid, &item->oid) == 0 || - git_oid_cmp(&delta->new_file.oid, &item->oid) == 0) + if (git_oid__cmp(&delta->old_file.oid, &item->oid) == 0 || + git_oid__cmp(&delta->new_file.oid, &item->oid) == 0) return delta; break; default: |