Re: 'typechange' in the git-status output

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

 



On 14 March 2011 20:29, Alexei Sholik <alcosholik@xxxxxxxxx> wrote:
> Hi git,
>
> I cloned git mirror from github[1]. When I run git-status in it's
> working directory, I see no output.
>
> But then, after copying the whole directory with 'cp -r' and running
> git-status in the newly created directory, I get the following:
>
>> # 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
>
> git-diff shows
>
>> diff --git a/RelNotes b/RelNotes
>> new file mode 100644
>> index 0000000..56c3863
>> --- /dev/null
>> +++ b/RelNotes
>> ... // the whole contents of the file
>
> Both copies of the repository are on the branch master with the latest
> commit 07873dc. Simply diffing copies of the RelNotes file gives no
> output.
>
> 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?
>
>
> Â[1]: git://github.com/git/git.git
>
> --
> Best regards,
> Alexei Sholik
>

Right, I've figured out the root of the change.

'ls -l' on the original RelNotes outputs:
  lrwxr-xr-x  1 alco  staff  32 Mar 14 20:35 RelNotes ->
Documentation/RelNotes/1.7.5.txt

'ls -l' on the copied RelNotes outputs:
  -rw-r--r--  1 alco  staff  1810 Mar 14 20:10 RelNotes

So the problem is with the cp, not git. But I wonder if it is
mentioned anywhere in the docs? Probably, git-clone's or git-status'
manpage would be a proper place?

-- 
Best regards,
Alexei Sholik
--
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]