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

RT[2/3]: Rename/Code-movement Tracking

From
KSKris Shannon <kris.shannon.kernel@gmail.com>
Date
Apr 28, 2005, 13:34 UTC
Message-ID
<5d4799ae05042806344aa9d75f@mail.gmail.com>
In-Reply-To
<5d4799ae0504280559109cd00e@mail.gmail.com>
IMO adding a new object type tag (or tags) for tracking would fit the git model.

Call it "rename" for example (better yet think of a better name) Let the contents be something along the lines of:

commit CHANGESET-SHA1 PARENT-TREE-SHA1 /old/path\0/new/path\0 PARENT-TREE-SHA1 /old/path/2\0/new/path/2\0 ...

The exact details will depend on the renaming model and I don't care to much at the moment what that turns out to be.

This new tag allows the rename data to be added on to commit's from people like linus who don't care about rename.

It doesn't reduce security because any can happen to the rename object and that will cover the whole commit (and those who sign the commit are obviously not validating any rename information)

The rename objects can be used to assist in automatic merging but from my experience I would agree with linus that if the right way to merge is not really obvious then you probably need user input anyway.

-- 
Kris Shannon <kris.shannon.kernel@gmail.com>
Previous: Kris ShannonNext: Kris Shannon
Message 2 of 5 in “RT[0/3]: Some related random thoughts”
  1. Kris ShannonApr 28, 2005
  2. RT[2/3]: Rename/Code-movement TrackingKris Shannon, Apr 28, 2005
  3. RT[1/3]: Alternate Encodings (esp. Delta Compression)Kris Shannon, Apr 28, 2005
  4. RT[3/3]: Reverse lookup of SHA1 referencesKris Shannon, Apr 28, 2005
  5. Kris ShannonApr 29, 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.