[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]

 



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