Re: [RFC] git-format-patch options
- From
- Luben Tuikov <ltuikov@yahoo.com>
- Date
- Nov 21, 2005, 17:36 UTC
- Message-ID
- <20051121173603.73700.qmail@web31806.mail.mud.yahoo.com>
- In-Reply-To
- <4381F97A.9010105@op5.se>
--- Andreas Ericsson <ae@op5.se> wrote:
> > Please don't. git-format-patch is generally used to send
Ok, so then when I want to extract a single commit into a patch in a patch format, I loosely do (scripted):
git-rev-list --pretty=raw --max-count=1 <commit-ish>
Then I record the parent <parent> of the commit-ish and do:
git-format-patch [output options] <parent>..<commit-ish>
Which gives me the commit with id <commit-ish> as a formatted patch.
Is there an alernative to this, as opposed to the two step procedure above?
Luben