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

git merges of tags

From
SRStephen Rothwell <sfr@canb.auug.org.au>
Date
May 18, 2017, 23:23 UTC
Message-ID
<20170519092202.6b0f9a57@canb.auug.org.au>
Hi all,

Just a reminder that if you are merging Linus' tree (or any tree really) via a tag, git was changed some time ago so that merging a tag will not do a fast forward (there is a good reason for this - I just can't recall it ATM). This is a problem when your current head of branch has been merged into (e.g.) Linus' tree and then you do "git merge <tag>" on a tag that is later than the merge point. You end up with an unnecessary merge commit rather than just fast forwarding.

To do the fast forward, try "git merge <tag>^{}" ... (unfortunately doing "git merge --ff <tag>" also does not do a fast forward - it also doesn't fail, it unexpectedly just creates a merge commit :-().

-- 
Cheers,
Stephen Rothwell
Next: Linus Torvalds
Message 1 of 2 in “git merges of tags”
  1. Stephen RothwellMay 18, 2017
  2. Linus TorvaldsMay 19, 2017

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.