git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Checking for fast-forward

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Jul 7, 2009, 11:01 UTC
Message-ID
<4A532B0A.5090405@drmicha.warpmail.net>
In-Reply-To
<20090707124657.1b0fe4df@schatten>
Florian Mickler venit, vidit, dixit 07.07.2009 12:46:
Show 13 quoted lines
> On Tue, 07 Jul 2009 10:21:40 +0200
> Michael J Gruber <git@drmicha.warpmail.net> 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
Previous: Florian MicklerNext: Lee Griffiths
Message 4 of 5 in “Re: Checking for fast-forward”
  1. Florian MicklerJul 6, 2009
  2. Michael J GruberJul 7, 2009
  3. Florian MicklerJul 7, 2009
  4. Michael J GruberJul 7, 2009
  5. Lee GriffithsJul 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.