git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
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 03:54:24 -0400	[thread overview]
Message-ID: <20090324075424.GC32400@coredump.intra.peff.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0903231119110.4871@axis700.grange>

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.

-Peff

  parent reply	other threads:[~2009-03-24  7:56 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 ` Jeff King [this message]
2009-03-24  8:02   ` [bug?] git-format-patch produces a 0-byte long patch for the first commit Guennadi Liakhovetski
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=20090324075424.GC32400@coredump.intra.peff.net \
    --to=peff@peff.net \
    --cc=g.liakhovetski@gmx.de \
    --cc=git@vger.kernel.org \
    /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).