Thread (7 messages) flat view 7 messages, 5 authors, 2016-06-15

Re: Seeing various mode changes on cygwin

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:08


On Sat, 8 Oct 2005, Junio C Hamano wrote:
Alex Riesen [off-list ref] writes:
quoted
These are not real attributes, cygwin emulates them from the names,
like .exe will always be 0755, for example.
Ouch.  Is this true in general, or only on FAT-derived
filesystems?

We may need to worry about this on the core side after all.
Some people need to mount FAT even on Linux systems, 
I think we might want to have a flag that says "don't care about 
filesystem modes". That should be pretty easy, I think we'd get most of 
them by just adding some logic to "ce_match_stat()".

Then add a "git chmod" to set the mode in the index (which should end up 
being just a wrapper around the regular "git-update-index" using the 
"--cacheinfo" flag, I think).

Those parts should be trivial.

The more interesting issue is how to set the _flag_ that we should do 
this. We may have to add a config file, and it should be per-repository 
(ie something like ".git/config" or ".git/info/config"). Or do we just do 
yet another environment variable?

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help