git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: [bug?] git-format-patch produces a 0-byte long patch for the first commit
Date: Tue, 24 Mar 2009 09:02:43 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.64.0903240901570.4451@axis700.grange> (raw)
In-Reply-To: <20090324075424.GC32400@coredump.intra.peff.net>

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!

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer

  reply	other threads:[~2009-03-24  8:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-23 10:34 [bug?] git-format-patch produces a 0-byte long patch for the first commit Guennadi Liakhovetski
2009-03-23 16:29 ` Thomas Rast
2009-03-23 16:46   ` Guennadi Liakhovetski
2009-03-26 17:29     ` [PATCH] Documentation: format-patch --root clarifications Thomas Rast
2009-03-24  7:54 ` [bug?] git-format-patch produces a 0-byte long patch for the first commit Jeff King
2009-03-24  8:02   ` Guennadi Liakhovetski [this message]
2009-03-24 11:46     ` Johannes Schindelin
2009-03-24 11:51       ` Guennadi Liakhovetski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0903240901570.4451@axis700.grange \
    --to=g.liakhovetski@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).