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

Re: another perspective on renames.

From
PJPaul Jackson <pj@engr.sgi.com>
Date
Apr 15, 2005, 05:16 UTC
Message-ID
<20050414221626.10c6c0e7.pj@engr.sgi.com>
In-Reply-To
<Pine.LNX.4.61.0504141759440.7261@cag.csail.mit.edu>
Scott wrote:
> Anyway, maybe it's worth thinking a little about an SCM in which this is a 
> feature, instead of (or in addition to) automatically assuming this is a 
> bug we need to add infrastructure to work around.
Agreed.

To me, the main purpose in tracking renames is to obtain a deeper history of the line-by-line changes in a file.

  ==> But that doesn't seem relevant here.

Last I looked, git has no such history. A given file contents is the indivisable atom of the git world, with no fine structure.

This is quite unlike classic SCM's, built on file formats that track source lines, not files, as the atomic unit.

To me, rename is a special case of the more general case of a big chunk of code (a portion of a file) that was in one place either being moved or copied to another place.

I wonder if there might be someway to use the tools that biologists use to analyze DNA sequences, to track the evolution of source code, identifying things like common chunks of code that differ in just a few mutations, and presenting the history of the evolution, at selectable levels of detail.

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@engr.sgi.com> 1.650.933.1373, 1.925.600.0401
Previous: C. Scott AnanianNext: Ingo Molnar
Message 2 of 4 in “another perspective on renames.”
  1. C. Scott AnanianApr 14, 2005
  2. Paul JacksonApr 15, 2005
  3. Ingo MolnarApr 15, 2005
  4. C. Scott AnanianApr 15, 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.