You are viewing a single thread.
View all comments View context
16 points

The issue isn’t just a simple oversight. Git includes the file name as part of the tree and commit hash. The hash has security implications. There’s really no way to make the hash support case insensitivity without opening up a multitude of holes there. So there will always be a mismatch, and you can’t just fix it without changing how git works from the ground up.

permalink
report
parent
reply
7 points
*

Of course you can, make it lowercase internally and store the case formatted string for output.

permalink
report
parent
reply
9 points

That’d break git repos where files with the same name, but different case exist.

permalink
report
parent
reply
-3 points
*

I was talking about branch names, not file names. File duplicates due to case sensitivity aren’t a problem on Windows anyway because those are already enforced by the file system. Unless you have people working on Linux that have multiple files with a similar name but with different casing but those should know better.

permalink
report
parent
reply
0 points

Yes you can

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.5K

    Monthly active users

  • 878

    Posts

  • 14K

    Comments