Re: [bug?] git-format-patch produces a 0-byte long patch for the first commit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 24 Mar 2009, Johannes Schindelin wrote:

> Hi,
> 
> On Tue, 24 Mar 2009, Guennadi Liakhovetski wrote:
> 
> > On Tue, 24 Mar 2009, Jeff King wrote:
> > 
> > > On Mon, Mar 23, 2009 at 11:34:07AM +0100, Guennadi Liakhovetski wrote:
> > > 
> > > > 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.
> > 
> > Mine is still 1.5.4, if it's already fixed in the meantime - all the 
> > better!
> 
> There is the off-chance that somewhere in those 3127 commits between 
> v1.5.4 and v1.6.1.1, not only this bug is fixed.  You might be surprised 
> ;-)
> 
> Seriously again, in a project that moves as fast as Git, you should always 
> test with a recent version, and v1.5.1 -- being over one year old -- does 
> not account for recent.

Sorry, didn't mention, I also tested with 1.6.0.6 - still was there.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux