Merge branch 'nd/status-refresh-progress'
[gitweb.git] / contrib / coccinelle / object_id.cocci
index d90ba8a0400b81cac8088bce10ed5b6a082e6402..d8bdb4871273da92d937d30a787d8b149fbe1552 100644 (file)
@@ -123,3 +123,18 @@ expression E1, E2;
 - hashcmp(E1, E2) == 0
 + hasheq(E1, E2)
   ...>}
+
+@@
+expression E1, E2;
+@@
+- oidcmp(E1, E2) != 0
++ !oideq(E1, E2)
+
+@@
+identifier f != hasheq;
+expression E1, E2;
+@@
+  f(...) {<...
+- hashcmp(E1, E2) != 0
++ !hasheq(E1, E2)
+  ...>}