Re: How to determine the order of commit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Mar 5, 2019, at 8:39 PM, Christian Couder <christian.couder@xxxxxxxxx> wrote:
> 
> Hi,
> 
> On Tue, Mar 5, 2019 at 10:00 AM wuzhouhui <wuzhouhui14@xxxxxxxxxxxxxxxx> wrote:
>> 
>> 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
> 
Yep, that's what I want. Thanks!
> ?




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux