Re: 'typechange' in the git-status output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 14, 2011 at 08:29:57PM +0200, Alexei Sholik wrote:

> But then, after copying the whole directory with 'cp -r' and running
> git-status in the newly created directory, I get the following:

"cp -r" isn't an exact copy. You probably want "cp -a" or at least "cp
-rs".

> > # On branch master
> > # Changed but not updated:
> > #   (use "git add <file>..." to update what will be committed)
> > #   (use "git checkout -- <file>..." to discard changes in working directory)
> > #
> > #	typechange: RelNotes

Right. RelNotes is a symlink. But "cp -r" dereferences the symlink and
copies the file contents themselves.

> What happened with the copied repository? I've found a couple of
> instances of the word 'typechange' in the source, but no mention in
> the docs. What does it mean and what could be the cause of this
> change?

It's the same as the "T" flag in "git diff --name-status". Namely, the
type of the file changed (between a symlink and a regular file).

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]