Thread (1 message) 1 message, 1 author, 2019-03-05

Re: How to determine the order of commit

From: Junio C Hamano <hidden>
Date: 2019-03-05 13:59:30

Christian Couder [off-list ref] writes:
Hi,

On Tue, Mar 5, 2019 at 10:00 AM wuzhouhui [off-list ref] wrote:
quoted
Suppose I have "git format-patch" two commit from a repository like
following:

  git format-patch -1 cf1c9ccba730
  git format-patch -1 d1a2930d8a99

Now, how to determine the commit order of these two patch in repository?
Do you mean something like:

$ git merge-base --is-ancestor cf1c9ccba730 d1a2930d8a99

and:

$ git merge-base --is-ancestor d1a2930d8a99 cf1c9ccba730

?
What if neither is true ;-)?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help