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

Wrong Git rename detection results

From
MKMartin Koegler <mkoegler@auto.tuwien.ac.at>
Date
Dec 15, 2007, 21:14 UTC
Message-ID
<20071215211425.GA12334@auto.tuwien.ac.at>

I have reworked parts of my bcusdk repository in a separate branch (6d102933f620b81b4a2c09046ec529460bd0c90f), which I merged into master (9068de13cb408babf4206aa5ee55a7f8094f4ff3).

I'm interessed in the resulting differenced of the merge: http://repo.or.cz/w/bcusdk.git?a=commitdiff;h=9068de13cb408babf4206aa5ee55a7f8094f4ff3;hp=6d102933f620b81b4a2c09046ec529460bd0c90f

The output of git is totally absurd. It tells me, that I moved a C file to a java file with about 70% similarity, many other C files where copied from one C file with 70% to 80% similarity, misses an move with new lines added (eibd/client/eibclient-int.h => eibd/client/c/eibclient-int.h) and so on.

Additionally, it states, that files were moved to unrelated files, eg:
  eibd/client/def/mcprogmodeoff.inc [moved from eibd/client/openvbusmonitor.c with 60% similarity]

In this case, eibd/client/mcprogmodeoff.def would have been the correct logical successor.

With git 1.5.4.rc0.1122.g5512, the rename detection yields to slightly different results, which are also not correct.

I guess, that the problem is triggered by the fact all files are short and share a common (big) license header.

mfg Martin Kögler PS: I don't doubt, that the results are technical correct (files have the printed similarity).

Message 1 of 1 in “Wrong Git rename detection results”
  1. Martin KoeglerDec 15, 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.