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

Re: rename directory weirdness

From
Steven Grimm <koreth@midwinter.com>
Date
Jul 26, 2007, 08:54 UTC
Message-ID
<46A86147.4010403@midwinter.com>
In-Reply-To
<46A8519D.5050801@tplogic.com>
Bert Douglas wrote:
Show 10 quoted lines
> $ mv dir1 dir2
> $ git add dir2
> $ git commit -a
>
> It popped up my editor with long list of files that it recognized as 
> 'renamed'.
> But one file it listed as 'copied' and further down as 'deleted'.
>
> Why this one file out of thousands not recognized as 'renamed' ?
> Is this a sign of a problem ?

Are the contents of the file in question identical to those of some other file in your directory tree? I've seen that happen too. There were some proposed improvements to address this last time it came up on the list, but I'm not sure if any of them actually made it into the code base.

-Steve
Previous: Bert Douglas
Message 2 of 2 in “rename directory weirdness”
  1. Bert DouglasJul 26, 2007
  2. Steven GrimmJul 26, 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.