<font size="2"><font face="verdana,sans-serif"><br></font></font><br><div class="gmail_quote">On Thu, Apr 14, 2011 at 1:33 AM, Bryan Wu <span dir="ltr"><<a href="mailto:bryan.wu@canonical.com">bryan.wu@canonical.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":1jn">in ti-omap4 tree, I just wanna get all the patches on top of a commit<br>
which is 2.6.38 kernel release. So I found that SHA ID of that commit<br>
and use "git format-patch -o /tmp/ SHA_ID.." to get patches. Very<br>
strange, I got lots of patches which are not on top of that commit.<br>
<br>
So Brad told me to do "git format-patch -1633 -o /tmp" to get 1633<br>
patches on top of that 2.6.38 release commit.<br>
</div></blockquote></div><br>you might get confused by the definition of 'on top'. 'on top' as being a child, or 'on top' as being more recent.<br><br>git log A.. will list all commits who are not an ancestor of A, which are reachable in your branch. but some of these commits can be older than A, and still aren't ancestor of A.<br>

<br>to me git format-patch A.. if run from your branch, will list all the commits which are in our OMAP4 branch but not in ubuntu master.<br><br><br>