Re: splitting large patch files into smaller ones
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 23, 2007, 09:43 UTC
- Message-ID
- <Pine.LNX.4.64.0708231042120.20400@racer.site>
- In-Reply-To
- <200708221929.l7MJTgiL012452@agora.fsl.cs.sunysb.edu>
Hi,
On Wed, 22 Aug 2007, Erez Zadok wrote:
Show 7 quoted lines
> 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