From: Johannes Schindelin Date: Thu, 23 Aug 2007 09:43:41 GMT Subject: Re: splitting large patch files into smaller ones Message-ID: In-Reply-To: <200708221929.l7MJTgiL012452@agora.fsl.cs.sunysb.edu> Hi, On Wed, 22 Aug 2007, Erez Zadok wrote: > I was looking around for a tool that would allow me to split a large > patch file into individual snippets and couldn't find one. So I wrote > one in perl. It takes a patch file and creates individual small files, > one for each combination of a filename listed in the patch, and a patch > snippet (starting with an '@@' line). Each '@@' snippet gets an index > number and a new filename, prefixed with the appropriate header ("diff > ...", ---, and +++ lines) so it's a valid patch file on its own. You can do that with "git add -i" and with "git gui" AFAIK. I even started some code to split hunks in "git gui", but it was pointed out that that code was not complete, and I did not have time to finish it. Ciao, Dscho