Re: [PATCH] object_id.cocci: match only expressions of type 'struct object_id'

2018-10-14 Thread Junio C Hamano
Junio C Hamano writes: > SZEDER Gábor writes: > >> Most of our semantic patches in 'contrib/coccinelle/object_id.cocci' >> turn calls of SHA1-specific functions into calls of their >> corresponding object_id counterparts, e.g. sha1_to_hex() to >> oid_to_hex(). These semantic patches look

Re: [PATCH] object_id.cocci: match only expressions of type 'struct object_id'

2018-10-14 Thread Junio C Hamano
SZEDER Gábor writes: > Most of our semantic patches in 'contrib/coccinelle/object_id.cocci' > turn calls of SHA1-specific functions into calls of their > corresponding object_id counterparts, e.g. sha1_to_hex() to > oid_to_hex(). These semantic patches look something like this: > > @@ >

[PATCH] object_id.cocci: match only expressions of type 'struct object_id'

2018-10-12 Thread SZEDER Gábor
Most of our semantic patches in 'contrib/coccinelle/object_id.cocci' turn calls of SHA1-specific functions into calls of their corresponding object_id counterparts, e.g. sha1_to_hex() to oid_to_hex(). These semantic patches look something like this: @@ expression E1; @@ -