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

git merge algorithm question

From
DBDaniel Biran <dbiran@google.com>
Date
Sep 6, 2017, 00:53 UTC
Message-ID
<92605DF3-9274-45A6-88B7-6281D192203F@google.com>
In-Reply-To
<202EE2E2-1D0B-4772-85F7-7C7804905297@google.com>
Show 16 quoted lines
>> I'm trying to better understand one of the merge algorithms as I had some triumphs and tribulations with using a set of commands during a merge. tldr: can a git merge -s recursive -X patience; // result in a fast-forward merge? will --no-ff stop it
>> 
>> So, the scenario is this:
>> 	- Merging a master branch into a feature branch that is 2+ years old
>> 	- We found this command was more beneficial when merging a large 20k line text file: 
>> 		- git merge -s recursive -X patience master
>> 	- In a recent merge using this approach the reflog shows that the merge was performed using a fast-forward from the feature branch's head
>> 		- 082517-1, feature/branch) HEAD@{23}: merge feature/branch: Fast-forward
>> 
>> 
>> My question is, is it possible for that command to use a fast-forward like this? (or did something else go horribly wrong? possibly an atlassian git GUI tool corrupting the work):
>> 	- If it is possible for the command to fast-forward the merge when making the commit does --no-ff force the command to never use fast-forward in this case
>> 
>> Thanks for the help,
>> Daniel
> 
Next: Bryan Turner
Message 1 of 2 in “git merge algorithm question”
  1. Daniel BiranSep 6, 2017
  2. Bryan TurnerSep 6, 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.