@@ -179,7 +179,7 @@ static int diff_delta__from_one(
179179
180180 delta -> old_file .flags |= GIT_DIFF_FLAG_VALID_ID ;
181181
182- if (has_old || !git_oid_iszero (& delta -> new_file .id ))
182+ if (has_old || !git_oid_is_zero (& delta -> new_file .id ))
183183 delta -> new_file .flags |= GIT_DIFF_FLAG_VALID_ID ;
184184
185185 return diff_insert_delta (diff , delta , matched_pathspec );
@@ -240,7 +240,7 @@ static int diff_delta__from_two(
240240 delta -> old_file .flags |= GIT_DIFF_FLAG_EXISTS ;
241241 delta -> new_file .flags |= GIT_DIFF_FLAG_EXISTS ;
242242
243- if (!git_oid_iszero (& new_entry -> id ))
243+ if (!git_oid_is_zero (& new_entry -> id ))
244244 delta -> new_file .flags |= GIT_DIFF_FLAG_VALID_ID ;
245245 }
246246
@@ -797,13 +797,13 @@ static int maybe_modified(
797797 /* if oids and modes match (and are valid), then file is unmodified */
798798 } else if (git_oid_equal (& oitem -> id , & nitem -> id ) &&
799799 omode == nmode &&
800- !git_oid_iszero (& oitem -> id )) {
800+ !git_oid_is_zero (& oitem -> id )) {
801801 status = GIT_DELTA_UNMODIFIED ;
802802
803803 /* if we have an unknown OID and a workdir iterator, then check some
804804 * circumstances that can accelerate things or need special handling
805805 */
806- } else if (git_oid_iszero (& nitem -> id ) && new_is_workdir ) {
806+ } else if (git_oid_is_zero (& nitem -> id ) && new_is_workdir ) {
807807 bool use_ctime =
808808 ((diff -> diffcaps & GIT_DIFFCAPS_TRUST_CTIME ) != 0 );
809809 git_index * index = git_iterator_index (info -> new_iter );
@@ -843,7 +843,7 @@ static int maybe_modified(
843843 /* if we got here and decided that the files are modified, but we
844844 * haven't calculated the OID of the new item, then calculate it now
845845 */
846- if (modified_uncertain && git_oid_iszero (& nitem -> id )) {
846+ if (modified_uncertain && git_oid_is_zero (& nitem -> id )) {
847847 const git_oid * update_check =
848848 DIFF_FLAG_IS_SET (diff , GIT_DIFF_UPDATE_INDEX ) && omode == nmode ?
849849 & oitem -> id : NULL ;
@@ -877,7 +877,7 @@ static int maybe_modified(
877877
878878 return diff_delta__from_two (
879879 diff , status , oitem , omode , nitem , nmode ,
880- git_oid_iszero (& noid ) ? NULL : & noid , matched_pathspec );
880+ git_oid_is_zero (& noid ) ? NULL : & noid , matched_pathspec );
881881}
882882
883883static bool entry_is_prefixed (
0 commit comments