Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Case-Conflict #34

Open
ajgon opened this issue Dec 14, 2015 · 1 comment
Open

Suggestion: Case-Conflict #34

ajgon opened this issue Dec 14, 2015 · 1 comment
Assignees

Comments

@ajgon
Copy link

ajgon commented Dec 14, 2015

Allowing Case-conflicted filenames in repository, can cause troubles for MAC users whose filesystems are almost alwyas case-insensitive. So for example, files User.rb and user.rb in the same dir are not allowed on OSX, and can proceed to bizzare results. To avoid that, some case-conflict filter would be nice, i.e.:

files.map(&:downcase).each_with_object(Hash.new(0)) { |o, h| h[o] += 1 }.select { |k,v| v > 1 }.keys
@mensfeld
Copy link
Contributor

That is a really good idea!! @nijikon I will implement this soon ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants