Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-06-17 20:33:31 +0300
committerJunio C Hamano <gitster@pobox.com>2022-06-17 20:33:31 +0300
commit99bbf4739d927a3d8183d1fc3f1ee7871aac9fb9 (patch)
treef6041cf3bca530bd9a7ee0d5fbc53c709086b473 /contrib/coccinelle
parent30327a08c8644cc415dca173aa3ddccf24c79c5a (diff)
parentb1299de4a1e9a193db2bfeb23508250ebbe2d67b (diff)
Merge branch 'jc/cocci-cleanup'
Remove a coccinelle rule that is no longer relevant. * jc/cocci-cleanup: cocci: retire is_null_sha1() rule
Diffstat (limited to 'contrib/coccinelle')
-rw-r--r--contrib/coccinelle/object_id.cocci12
1 files changed, 0 insertions, 12 deletions
diff --git a/contrib/coccinelle/object_id.cocci b/contrib/coccinelle/object_id.cocci
index ddf4f22bd7..01f8d6935b 100644
--- a/contrib/coccinelle/object_id.cocci
+++ b/contrib/coccinelle/object_id.cocci
@@ -1,18 +1,6 @@
@@
struct object_id OID;
@@
-- is_null_sha1(OID.hash)
-+ is_null_oid(&OID)
-
-@@
-struct object_id *OIDPTR;
-@@
-- is_null_sha1(OIDPTR->hash)
-+ is_null_oid(OIDPTR)
-
-@@
-struct object_id OID;
-@@
- hashclr(OID.hash)
+ oidclr(&OID)