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

Re: Merge with git-pasky II.

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Apr 26, 2005, 20:31 UTC
Message-ID
<Pine.LNX.4.21.0504261607310.30848-100000@iabervon.org>
In-Reply-To
<Pine.LNX.4.58.0504261256150.18901@ppc970.osdl.org>
On Tue, 26 Apr 2005, Linus Torvalds wrote:
Show 12 quoted lines
> 
> 
> 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".

I'd even go so far as to say that we need to have the user sign off on this. The modification is reasonably likely to not work in the new location, due to use of statics that aren't available or something of the sort.

I suspect that we want to report a conflict in the new location between the old version and the new version, and let the person merging check whether the change is okay. That is, both sides modified the same section at the same time: one side modified its content, while the other modified its location. We can give a good suggestion, but we need a final ruling.

	-Daniel
*This .sig left intentionally blank*
Previous: Diego CallejaNext: Tom Lord
Message 14 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.