Re: [RFC] git-format-patch options
Show 21 quoted lines
> --- Andreas Ericsson <ae@op5.se> wrote:
>
>
>>Here's how to automate it.
>>
>>git format-patch $(git rev-list --max-count=2 <commit-ish> | tail -n
>>1)..<commit-ish>
>
>
> I've a similar script, called
> "git-format-commit-patch <commit-ish>" which is slightly
> more involved.
>
>
>>Either way, you need to know <commit-ish>, but this format should be
>>fairly easy to add to git-format-patch. If you do, please
>
>
> How about git-format-patch --commit <commit-ish>
> to generate the formatted patch of only what _that_ commit
> introduced? (i.e. <parent>..<commit-ish>)
Doesn't git-format-patch $commit^1..$commit do what you want?