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

Re: retrospective move

From
SBSanti Béjar <santi@agolina.net>
Date
Feb 4, 2009, 12:57 UTC
Message-ID
<adf1fd3d0902040457p7823792dg80a6d389f8079c32@mail.gmail.com>
In-Reply-To
<200902041333.40776.trast@student.ethz.ch>
2009/2/4 Thomas Rast <trast@student.ethz.ch>:
[...]
Show 27 quoted lines
>
> Here's a sequence of commands that makes a test case:
>
>  git init
>  seq 1 10 > A
>  git add A
>  git commit -m initial
>  seq 11 15 >> A
>  git commit -m second A
>  seq 16 20 >> A
>  git commit -m third
>  git checkout -b side HEAD~2
>  cp A B
>  git add B
>  git commit -m copy
>  seq 3 10 > B               # <--
>  git commit -m edit B
>  git rm A
>  git commit -m delete
>
> Then running
>
>  git merge master
>
> goes through cleanly, but changing the line indicated above to 'seq 5
> 10' makes it less similar, falling through the detection and causing a
> conflict.

Thanks, but that's known, this is why I wrote "or the files are small". I was not clear, but what I wanted was a *real* test case. In which cases this is a problem in practice.

>  The minimum required similarity for merges does not seem to
> be configurable unfortunately.
No, but nevertheless it works fine most of the time, except with small files.

HTH, Santi

Previous: Thomas Rast
Message 5 of 5 in “retrospective move”
  1. jemmywFeb 4, 2009
  2. Thomas RastFeb 4, 2009
  3. Santi BéjarFeb 4, 2009
  4. Thomas RastFeb 4, 2009
  5. Santi BéjarFeb 4, 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.