Re: Checking for fast-forward

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

 



Florian Mickler venit, vidit, dixit 07.07.2009 12:46:
> On Tue, 07 Jul 2009 10:21:40 +0200
> Michael J Gruber <git@xxxxxxxxxxxxxxxxxxxx> wrote:
> 
>> If $(git rev-list bar..remotes/origin/foo) is empty then the branch
>> foo in the remote repo can be fast-forwarded to bar.
>>
>> Chhers,
>> Michael
> 
> in that case you could also do 
> 'git cherry bar origin/foo'
> 
> that shows you all commits that are in origin/foo but not in bar. 

Well, that goes through all commits "bar..remotes/origin/foo" and
computes patch-ids. It is porcelain. Don't use it for scripting.

Michael
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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]