Re: [git-users] Re: unable to reset working copy changes

2015-04-20 Thread Konstantin Khomoutov
On Sun, 19 Apr 2015 15:04:26 -0700 (PDT)
Thomas Ferris Nicolaisen tfn...@gmail.com wrote:

  Hi, I am unable to reset my working copy changes.
 
  I have two files in this project which differ only in their case:
   listwise/liblistwise/op/c/c.c
   listwise/lblistwise/op/C/C.c
 
  It appears that git is being confused by the similar file names.
 
  Is this a bug?
 
  todd@HOSSBEAST /q/Code/fab (master)
  $ git version
  git version 1.9.5.msysgit.1
 
 I'm assuming you're on Windows since  you use a Git built with
 msysgit.
 
 Windows does not have a case-sensitive file-system.

Nit-picking a bit, NTFS is case-preserving but case-insensitive.
That is, given the right tools, it is actually possible to rename foo
to fOO, and the name will be stored as fOO (no case conversion is
done).  But yes, when matching a file name against the entries
of the directory it's located in, NTFS performs case-insensitive
comparison.

AFAIK, HFS on Mac OS X exhibits the same behaviour.

[...]
 If you are in control of this repository, I would heavily recommend 
 changing some naming conventions. Having multiple files with the same
 name is asking for trouble and confusion.

Absolutely!

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Re: unable to reset working copy changes

2015-04-19 Thread Thomas Ferris Nicolaisen
On Saturday, April 18, 2015 at 1:04:19 AM UTC+2, todd freed wrote:

 Hi, I am unable to reset my working copy changes.

 I have two files in this project which differ only in their case:
  listwise/liblistwise/op/c/c.c
  listwise/lblistwise/op/C/C.c

 It appears that git is being confused by the similar file names.

 Is this a bug?

 todd@HOSSBEAST /q/Code/fab (master)
 $ git version
 git version 1.9.5.msysgit.1



I'm assuming you're on Windows since  you use a Git built with msysgit.

Windows does not have a case-sensitive file-system. This means that once a 
file comes out of your repository with name 'c', it will overwrite any file 
with the name 'C'.

A quick googling turned out that there are ways to make this work on 
Windows as long as you're inside cygwin at least: 

http://superuser.com/questions/266110/how-do-you-make-windows-7-fully-case-sensitive-with-respect-to-the-filesystem

But it seems non-trivial, and the solution does not work outside the shell. 
I guess you're better off using another OS, or at least a virtual machine 
to work on this particular repository.

If you are in control of this repository, I would heavily recommend 
changing some naming conventions. Having multiple files with the same name 
is asking for trouble and confusion.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.