threads / discuss / 9237

rename directory weirdness

Subject: rename directory weirdness

## tl;dr

2 messages between Jul 26, 2007 and Jul 26, 2007.

replies: 1people: 2as markdown or json

Bert Douglas· Jul 26, 2007, 07:47 UTC · lore
I am new user.  Trying to understand git.

I renamed a directory. $ 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 ?

Thanks again for all help.
Steven Grimm· Jul 26, 2007, 08:54 UTC · re: Bert Douglas · lore

Re: rename directory weirdness

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

← back to recent threads