# rename directory weirdness

2 messages from 2007-07-26 to 2007-07-26. Participants: Bert Douglas, Steven Grimm.
Thread: https://gitlist.dev/t/9237

## Bert Douglas, 2007-07-26 07:47

Subject: rename directory weirdness
Message-ID: <46A8519D.5050801@tplogic.com>
URL: https://gitlist.dev/e/46A8519D.5050801%40tplogic.com

```
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, 2007-07-26 08:54

Subject: Re: rename directory weirdness
Message-ID: <46A86147.4010403@midwinter.com>
URL: https://gitlist.dev/e/46A86147.4010403%40midwinter.com
In-Reply-To: <46A8519D.5050801@tplogic.com>

```
Bert Douglas wrote:
> $ 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

```
