Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
convert "hashcmp() == 0" to hasheq()
[gitweb.git]
/
read-cache.c
diff --git
a/read-cache.c
b/read-cache.c
index 7b1354d7590a70ecbd6e508bdd95eafd4793efcc..eb4919e77fa248e379408b8e0f62dfc0a0e5dbbb 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-767,7
+767,7
@@
int add_to_index(struct index_state *istate, const char *path, struct stat *st,
/* It was suspected to be racily clean, but it turns out to be Ok */
was_same = (alias &&
!ce_stage(alias) &&
-
!oidcmp
(&alias->oid, &ce->oid) &&
+
oideq
(&alias->oid, &ce->oid) &&
ce->ce_mode == alias->ce_mode);
if (pretend)