On Tue, Nov 8, 2011 at 9:09 AM, Mike Melanson <[email protected]> wrote:
> On 11/7/2011 10:58 PM, Luca Barbato wrote:
>>
>> git format-patch -1 doesn't work?
>
> Where does 'git format-patch -1' come from? The HOWTO never mentions the
> '-1' switch. Yeah, adding the '-1' does something useful.

http://schacon.github.com/git/git-rev-list.html

  -n number

It means only one commit. But you would have more success using
gitrevisions(7). In order to see which commits will be selected, you
can try 'git log':
% git log master..my_branch
% git format-patch master..my_branch

But if you are already in 'my_branch', this is the same:
% git format-patch master

This is really very basic stuff covered in countless online tutorials,
including git's official one:
http://schacon.github.com/git/gittutorial.html

And there are even examples in the documentation of 'git format-patch':
http://schacon.github.com/git/git-format-patch.html

Plus, you don't have to fire format-patch separately:
% git send-email --to libav-devel --cover-letter --annotate master

-- 
Felipe Contreras
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to