Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jt/non-blob-lazy-fetch'
[gitweb.git]
/
contrib
/
coccinelle
/
object_id.cocci
diff --git
a/contrib/coccinelle/object_id.cocci
b/contrib/coccinelle/object_id.cocci
index 4e1f1a74315419316bb374d33377dfb91467a731..d8bdb4871273da92d937d30a787d8b149fbe1552 100644
(file)
--- a/
contrib/coccinelle/object_id.cocci
+++ b/
contrib/coccinelle/object_id.cocci
@@
-129,3
+129,12
@@
expression E1, E2;
@@
- oidcmp(E1, E2) != 0
+ !oideq(E1, E2)
+
+@@
+identifier f != hasheq;
+expression E1, E2;
+@@
+ f(...) {<...
+- hashcmp(E1, E2) != 0
++ !hasheq(E1, E2)
+ ...>}