Re: Can't export whole repo as patches
- From
Junio C Hamano <junkio@cox.net>
- Date
- Apr 7, 2006, 19:18 UTC
- Message-ID
- <7vr749i48s.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060407184701.GA6686@xp.machine.de>
Peter Baumann <peter.baumann@gmail.com> writes:
> How can I get the inital commit as a patch?
format-patch is designed to get a patch to send to upstream, and does not handle the root commit. In your two revisions repository, you could do something like this:
$ git diff-tree -p --root master~1
Or more in general:
$ git rev-list master |
git diff-tree --stdin --root --pretty=fuller -pBTW, I've been meaning to add --pretty=patch to give format-patch compatible output to diff-tree, but haven't got around to actually do it. Another thing I've been meaning to do is "git log --diff" which is more or less "git whatchanged".