From: Ryan Anderson Date: Mon, 21 Nov 2005 19:11:35 GMT Subject: Re: [RFC] git-format-patch options Message-ID: <43821BE7.5000306@michonline.com> In-Reply-To: <20051121182737.43012.qmail@web31811.mail.mud.yahoo.com> Luben Tuikov wrote: > --- Andreas Ericsson wrote: > > >>Here's how to automate it. >> >>git format-patch $(git rev-list --max-count=2 | tail -n >>1).. > > > I've a similar script, called > "git-format-commit-patch " which is slightly > more involved. > > >>Either way, you need to know , but this format should be >>fairly easy to add to git-format-patch. If you do, please > > > How about git-format-patch --commit > to generate the formatted patch of only what _that_ commit > introduced? (i.e. ..) Doesn't git-format-patch $commit^1..$commit do what you want?