contrib/coccinelle: add basic Coccinelle transforms
commitdb1d80b8faddc5d5702d79974c5757b464bcbaf6
authorbrian m. carlson <sandals@crustytoothpaste.net>
Fri, 24 Jun 2016 23:09:20 +0000 (24 23:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jun 2016 18:39:02 +0000 (28 11:39 -0700)
treeead99cf9d8ae72b601b145139d54658fee87442f
parent55c529a7005c653ceb318e1e25b40ff96a41877f
contrib/coccinelle: add basic Coccinelle transforms

Coccinelle (http://coccinelle.lip6.fr/) is a program which performs
mechanical transformations on C programs using semantic patches.  These
semantic patches can be used to implement automatic refactoring and
maintenance tasks.

Add a set of basic semantic patches to convert common patterns related
to the struct object_id transformation, as well as a README.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/coccinelle/README [new file with mode: 0644]
contrib/coccinelle/object_id.cocci [new file with mode: 0644]