Skip to content

Commit 6013c4a

Browse files
committed
Merge branch 'jc/cocci-cleanup' into seen
* jc/cocci-cleanup: cocci: retire is_null_sha1() rule
2 parents f03ba5c + b1299de commit 6013c4a

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)