Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
convert "hashcmp() != 0" to "!hasheq()"
[gitweb.git]
/
builtin
/
checkout.c
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index 29ef50013dccbd118093af0b4dc08eb907953cc2..082e3a9f19f71f628d0529262bc9fecfcd47b5ee 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-96,7
+96,7
@@
static int update_some(const struct object_id *oid, struct strbuf *base,
if (pos >= 0) {
struct cache_entry *old = active_cache[pos];
if (ce->ce_mode == old->ce_mode &&
-
!oidcmp
(&ce->oid, &old->oid)) {
+
oideq
(&ce->oid, &old->oid)) {
old->ce_flags |= CE_UPDATE;
discard_cache_entry(ce);
return 0;