Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762295AbaGRUkY (ORCPT ); Fri, 18 Jul 2014 16:40:24 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:60884 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755047AbaGRUkW (ORCPT ); Fri, 18 Jul 2014 16:40:22 -0400 X-Sasl-enc: ugcFI7k4ywsBLsUkgMUbuVcL/EBr8bJ446b2acPVGcGo 1405716021 Date: Fri, 18 Jul 2014 13:40:21 -0700 From: Greg KH To: Andrey Utkin Cc: Benoit Taine , adobriyan@gmail.com, kernel-janitors@vger.kernel.org, "linux-kernel@vger.kernel.org" , kernelnewbies@kernelnewbies.org Subject: Re: How to automate checkpatch && get_maintainers && git send-email of commits range? Message-ID: <20140718204021.GA7233@kroah.com> References: <20140718144621.GA12871@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 18, 2014 at 06:24:15PM +0300, Andrey Utkin wrote: > 2014-07-18 17:46 GMT+03:00 Benoit Taine : > > On 18/07/2014 17:38, Andrey Utkin wrote: > >> Is there script for automated checkpatch.pl && get_maintainers.pl && > >> git send-email for range of commits? I see none. Would it be welcome > >> to submit such one to kernel tree? > > > You can use `splitpatch` to split a patch into multiple mails with the > > correct mailing list and maintainers. It generates a script to > > chain-send these emails using `cocci-send-email` (a modified version of > > `git-send-email`). > > > > Both are available in the `tools/` directory of coccinelle's > > distribution . > > Thank you for this info, but it doesn't match exactly what i seek for. > I'd like to automate checking and sending exactly of range of git > commits, or of a set of files generated by git-format-patch. > I also cannot use cocci-send-email because it doesn't pick To: and Cc: > lines which i inject into git-format-patch-formatted files. And i > don't know tools to format the patches in "The original format used by > Greg Kroah-Hartman's send_lots_of_email.pl script". > My target should be to > - check all patches, > - find set of email addresses to Cc for each patch, > - send them at once to correct sets of addresses, entering SMTP > password only once if it is not stored in git-config. git send-email can do all of the last two things, have you tried it? As for the format for my old script, I should just delete that logic, I don't even use it anymore, I just use git send-email. thanks,m greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/