summaryrefslogtreecommitdiff
path: root/src/status.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-08 17:28:35 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-08 17:28:35 -0500
commite2d4f89c4999327c8eb1cf47b38fab43756b6c13 (patch)
treeff7b387caad5bba97799f150b51cd972158f0de1 /src/status.c
parente50d138e898dd034161663873f75716086266f86 (diff)
downloadlibgit2-e2d4f89c4999327c8eb1cf47b38fab43756b6c13.tar.gz
oid: `is_zero` instead of `iszero`ethomson/is_and_from
The only function that is named `issomething` (without underscore) was `git_oid_iszero`. Rename it to `git_oid_is_zero` for consistency with the rest of the library.
Diffstat (limited to 'src/status.c')
-rw-r--r--src/status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/status.c b/src/status.c
index ef32a0a8e..b8ae17026 100644
--- a/src/status.c
+++ b/src/status.c
@@ -85,14 +85,14 @@ static unsigned int workdir_delta2status(
/* 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.id) &&
+ if (git_oid_is_zero(&idx2wd->old_file.id) &&
diff->old_src == GIT_ITERATOR_TYPE_WORKDIR &&
!git_diff__oid_for_file(
&idx2wd->old_file.id, diff, idx2wd->old_file.path,
idx2wd->old_file.mode, idx2wd->old_file.size))
idx2wd->old_file.flags |= GIT_DIFF_FLAG_VALID_ID;
- if (git_oid_iszero(&idx2wd->new_file.id) &&
+ if (git_oid_is_zero(&idx2wd->new_file.id) &&
diff->new_src == GIT_ITERATOR_TYPE_WORKDIR &&
!git_diff__oid_for_file(
&idx2wd->new_file.id, diff, idx2wd->new_file.path,
@@ -280,7 +280,7 @@ int git_status_list_new(
if ((error = git_repository__ensure_not_bare(repo, "status")) < 0 ||
(error = git_repository_index(&index, repo)) < 0)
return error;
-
+
if (opts != NULL && opts->baseline != NULL) {
head = opts->baseline;
} else {