]> git.ipfire.org Git - thirdparty/git.git/blobdiff - contrib/coccinelle/object_id.cocci
convert "oidcmp() != 0" to "!oideq()"
[thirdparty/git.git] / contrib / coccinelle / object_id.cocci
index d90ba8a0400b81cac8088bce10ed5b6a082e6402..4e1f1a74315419316bb374d33377dfb91467a731 100644 (file)
@@ -123,3 +123,9 @@ expression E1, E2;
 - hashcmp(E1, E2) == 0
 + hasheq(E1, E2)
   ...>}
+
+@@
+expression E1, E2;
+@@
+- oidcmp(E1, E2) != 0
++ !oideq(E1, E2)