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

Re: Struggling with tangled

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 22, 2006, 19:40 UTC
Message-ID
<ek28vh$f6f$1@sea.gmane.org>
In-Reply-To
<200611221915.59073.alan@chandlerfamily.org.uk>
Alan Chandler wrote:
> On Wednesday 22 November 2006 11:01, Jakub Narebski wrote:
>> Alan Chandler wrote:
Show 7 quoted lines
>>> 3) I sometime hit a merge conflict in a file which I know will actually
>>> be deleted at the tip of the topic I am rebasing.  Is there a way at this
>>> point to just tell the conflict resolution to say make this file go away.
>>
>> "git rm <filename>" plus "git update-index <filename>" doesn't work?
> 
> Well I _thought_ I tried git-update-index --remove and that hadn't worked.
I think "git update-index --force-remove" might be needed here.
Show 13 quoted lines
>>> 4) I repeat the question I asked in a thread above.  What is the --merge
>>> switch on git-rebase actually do.  The man page starts talking about
>>> merge strategies, but there already is a -s switch for that.
>>
>> "git rebase" uses "git format-patch" + "git-am --3way" machinery by
>> default. The --merge option makes it use merge machinery instead (similar
>> to the way "git checkout -m" uses merge strategy IIRC).
> 
> Yes but ...
> 
> ... what does that mean in usage terms?
> 
> Why would I want to use one rather than the other?

Merge machinery can detect renames. I don't know if merge machinery supports skipping over commits. The format-patch/am --3way machinery was first (and is default).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Alan ChandlerNext: Johannes Schindelin
Message 4 of 7 in “Struggling with tangled”
  1. Alan ChandlerNov 22, 2006
  2. Jakub NarebskiNov 22, 2006
  3. Alan ChandlerNov 22, 2006
  4. Jakub NarebskiNov 22, 2006
  5. Johannes SchindelinNov 22, 2006
  6. Junio C HamanoNov 22, 2006
  7. Johannes SchindelinNov 22, 2006

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.