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

Detection of relocations within a file

From
TMTim Mazid <timmazid@hotmail.com>
Date
Aug 30, 2010, 15:04 UTC
Message-ID
<SNT124-W57C91CBC3A362218ACA23DC4890@phx.gbl>
Hi git-list,
I was just wondering if git can/does detect relocations of sections of code/text within a file.
For example, moving a function from the top of a file to the end.
If git does not currently do this, would it be a good/bad idea, and how hard would it be to implement?
Regards,
Tim.
 		 	   		  
Next: Jonathan Nieder
Message 1 of 3 in “Detection of relocations within a file”
  1. Tim MazidAug 30, 2010
  2. Jonathan NiederAug 30, 2010
  3. Matthieu MoyAug 30, 2010

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.