Skip to content

Commit b1299de

Browse files
committed
cocci: retire is_null_sha1() rule
Since 8d4d86b (cache: remove null_sha1, 2019-08-18) removed the is_null_sha1() function, rewrite rules to correct callers of the function to use is_null_oid() instead has become irrelevant, as any new callers of the function will get caught by the compiler much more quickly without spending cycles on Coccinelle. Remove these rules. Signed-off-by: Junio C Hamano <[email protected]>
1 parent e54793a commit b1299de

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

contrib/coccinelle/object_id.cocci

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
@@
2-
struct object_id OID;
3-
@@
4-
- is_null_sha1(OID.hash)
5-
+ is_null_oid(&OID)
6-
7-
@@
8-
struct object_id *OIDPTR;
9-
@@
10-
- is_null_sha1(OIDPTR->hash)
11-
+ is_null_oid(OIDPTR)
12-
131
@@
142
struct object_id OID;
153
@@

0 commit comments

Comments
 (0)