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

Re: Merge with git-pasky II.

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 26, 2005, 19:58 UTC
Message-ID
<Pine.LNX.4.58.0504261256150.18901@ppc970.osdl.org>
In-Reply-To
<Pine.LNX.4.44.0504261129500.4678-100000@wax.eds.org>
On Tue, 26 Apr 2005, Bram Cohen wrote:
> 
> If one person renames a file and another person modifies it then the
> changes should be applied to the moved file.
Bzzt. Wrong answer.

The _right_ answer is "if one person moves a function, and another person modifies the function, the changes should be applied to the moved function".

Which is clearly a _much_ more common case than file renames.

In other words, if your algorithm doesn't handle the latter, then there is no point in handling the former either.

And _if_ your algorithm handles the latter, then there's no point in handling file renames specially, since the algorithm will have done that too, as a small part of it.

		Linus
Previous: Bram CohenNext: Tom Lord
Message 2 of 15 in “Re: Merge with git-pasky II.”
  1. Bram CohenApr 26, 2005
  2. Linus TorvaldsApr 26, 2005
  3. Tom LordApr 26, 2005
  4. Bram CohenApr 26, 2005
  5. Tom LordApr 26, 2005
  6. Linus TorvaldsApr 26, 2005
  7. Linus TorvaldsApr 26, 2005
  8. Bram CohenApr 26, 2005
  9. Fabian FranzApr 26, 2005
  10. Linus TorvaldsApr 26, 2005
  11. Linus TorvaldsApr 26, 2005
  12. Petr BaudisApr 28, 2005
  13. Diego CallejaApr 26, 2005
  14. Daniel BarkalowApr 26, 2005
  15. Tom LordApr 26, 2005

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.