Filesystems and case-insensitivity
Filesystems and case-insensitivity
Posted Nov 28, 2018 17:54 UTC (Wed) by tnoo (subscriber, #20427)Parent article: Filesystems and case-insensitivity
Posted Nov 28, 2018 20:42 UTC (Wed)
by saffroy (guest, #43999)
[Link] (2 responses)
Posted Nov 29, 2018 17:05 UTC (Thu)
by cesarb (subscriber, #6266)
[Link] (1 responses)
Posted Nov 29, 2018 17:29 UTC (Thu)
by bfields (subscriber, #19510)
[Link]
Posted Nov 28, 2018 21:00 UTC (Wed)
by smurf (subscriber, #17840)
[Link] (3 responses)
Posted Nov 29, 2018 9:06 UTC (Thu)
by dgm (subscriber, #49227)
[Link] (2 responses)
Yes, you can. You only need to use the canonical representation of the file name (the case-folded one) and check that file name.
Posted Nov 29, 2018 12:20 UTC (Thu)
by smurf (subscriber, #17840)
[Link] (1 responses)
Posted Nov 29, 2018 15:23 UTC (Thu)
by dgm (subscriber, #49227)
[Link]
Posted Nov 29, 2018 1:02 UTC (Thu)
by bfields (subscriber, #19510)
[Link] (2 responses)
Git, like most applications, already has to be prepared to work on case-insensitive filesystems.
Posted Nov 29, 2018 4:06 UTC (Thu)
by smurf (subscriber, #17840)
[Link] (1 responses)
Posted Nov 29, 2018 15:31 UTC (Thu)
by bfields (subscriber, #19510)
[Link]
File and directory names are a problem too, of course. If a directory you're storing in git includes both foo and FOO, then you'll have a problem when you try to check it out on a case-insensitive filesystem.
I don't think that's really fixable; some people actually do have such content which they need to track in git, others can't deal with it, it's up to the user to decide what they care about.
But git works on case-insensitive filesystems if the stuff you put into it does.
Consider hash values 0xabcdef and 0xABCDEF: well, they are the same value. :) Hash-based names in hex actually don't care about case.
Besides, see my other comment about when and why it is needed.
Filesystems and case-insensitivity
Filesystems and case-insensitivity
What's an example of an application that does that?
Filesystems and case-insensitivity
Filesystems and case-insensitivity
Filesystems and case-insensitivity
Filesystems and case-insensitivity
Filesystems and case-insensitivity
- use the filesystem as case preserving (and give up case insensitivity)
- use the filesystem as canse-insensitive (and forget about case preservation)
- use xattrs
And all that, without touching a single line of kernel code.
Filesystems and case-insensitivity
Filesystems and case-insensitivity
Git has a "packed-refs" file these days, so the problem *should* be solved, but I haven't checked.
Filesystems and case-insensitivity