[Cocci] Re: Mainlining-Worflow with Coccinelle?
Julia Lawall
julia at diku.dk
Mon Mar 1 06:46:19 CET 2010
On Mon, 1 Mar 2010, Wolfram Sang wrote:
> > > Finally, I'd like to ask how you collect the correct cc: for each patch. Is
> > > this handwork, get_maintainers.pl or something else?
> >
> > get_maintainers. It's irrelevant to Coccinelle, but I use the option
> > --git-min-signatures 50000 to only sent the patch to the maintainers, not
> > to the recent contributers for the given files.
>
> I use --no-git for that purpose now; this makes it a little faster, too.
>
> I was yet able to use -patch correctly and the patches look pretty good.
> There is one issue left, however. If I want to make patches per directory,
> then I'd need spatch to _not_ recurse into child directories. Given
>
> drivers/misc
> drivers/misc/eeprom
>
> the patch for 'drivers/misc/' will now also contain the eeprom-patches.
> While I'm still thinking if one or two patches are more apropriate for my
> current case, I think being able to control recursion is useful in general.
> What do you think?
If you don't want recursion, perhaps it is easier to just iterate over the
desired files at the shell level? I could make yet another option for
this behavior, but Coccinelle already has a lot of them...
julia
More information about the Cocci
mailing list