Re: [bug?] git-format-patch produces a 0-byte long patch for the first commit
- From
Jeff King <peff@peff.net>
- Date
- Mar 24, 2009, 07:54 UTC
- Message-ID
- <20090324075424.GC32400@coredump.intra.peff.net>
- In-Reply-To
- <Pine.LNX.4.64.0903231119110.4871@axis700.grange>
On Mon, Mar 23, 2009 at 11:34:07AM +0100, Guennadi Liakhovetski wrote:
Show 10 quoted lines
> mkdir x > cd x > git-init > echo hi > greating > git-commit -a > git-format-patch -1 > > produces a 0-byte long patch. git-format-patch HEAD^ produces an error, > whereas with more than one commit it produces tha last patch. Yes, I know > about "--root" and that it does allow to extract the very first commit.
What version of git are you using? I believe the 0-byte diff has been fixed since git 1.6.1.1.
-Peff