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

Re: Directory renames (was Re: blame follows renames, but log doesn't)

From
Steven Grimm <koreth@midwinter.com>
Date
Jun 20, 2007, 20:59 UTC
Message-ID
<46799541.6020608@midwinter.com>
In-Reply-To
<46798B8E.6040103@vilain.net>
Sam Vilain wrote:
Show 6 quoted lines
> I didn't review your test cases in detail, but they seemed to suffer
> from what I call "over-trivialization"; the heuristic methods don't work
> very well for these non-real-world test cases because they're not long
> enough.  Are you confident that these deficiencies are still there with
> longer examples?
>   

Those test cases were a demonstration of something I actually ran into on a real-world project yesterday. The test cases are trivial and short simply to make them easy to follow in an email message. If you substitute longer contents for the test files in my example, you will see the exact same behavior. The real file in question is around 2KB long, not a monster but presumably long enough that the heuristics should work.

Also -- though this doesn't happen to be relevant in the case where I ran into this -- not all files in real-world projects are huge. If the heuristics break on small test-case files then they will break on small real-world files too. If nothing else, a real-world project can itself contain trivial test data (for testing the project, not testing the version control system) in the form of lots of small files with similar or identical contents.

-Steve
Previous: Sam VilainNext: Jakub Narebski
Message 9 of 10 in “blame follows renames, but log doesn't”
  1. Martin LanghoffJun 19, 2007
  2. Sam VilainJun 19, 2007
  3. Theodore TsoJun 19, 2007
  4. Martin LanghoffJun 19, 2007
  5. Junio C HamanoJun 19, 2007
  6. Steven GrimmJun 19, 2007
  7. Directory renames (was Re: blame follows renames, but log doesn't)Steven Grimm, Jun 19, 2007
  8. Sam VilainJun 20, 2007
  9. Steven GrimmJun 20, 2007
  10. Jakub NarebskiJun 20, 2007

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.