From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: git@vger.kernel.org
Subject: [bug?] git-format-patch produces a 0-byte long patch for the first commit
Date: Mon, 23 Mar 2009 11:34:07 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0903231119110.4871@axis700.grange> (raw)
Hi,
I noticed some special "features" of the first git commit, which seem at
least inconsistent to me, even though I've got some explanations on IRC.
E.g., the sequence
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.
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
next reply other threads:[~2009-03-23 10:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-23 10:34 Guennadi Liakhovetski [this message]
2009-03-23 16:29 ` [bug?] git-format-patch produces a 0-byte long patch for the first commit 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
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.0903231119110.4871@axis700.grange \
--to=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).