git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bug?] git-format-patch produces a 0-byte long patch for the first commit
@ 2009-03-23 10:34 Guennadi Liakhovetski
  2009-03-23 16:29 ` Thomas Rast
  2009-03-24  7:54 ` [bug?] git-format-patch produces a 0-byte long patch for the first commit Jeff King
  0 siblings, 2 replies; 8+ messages in thread
From: Guennadi Liakhovetski @ 2009-03-23 10:34 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-26 21:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-03-24 11:46     ` Johannes Schindelin
2009-03-24 11:51       ` Guennadi Liakhovetski

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).