Skip to content

jbertran/casesensitive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

What is this?

This is an interesting side effect of Linux being case-sensitive, and MacOS/Windows not. When a Mac/Windows user clones this project, its git status is automatically tainted by PROJECTS being deleted.

$ git clone git@github.com:jbertran/casesensitive
[...]
$ cd casesensitive
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	deleted:    PROJECTS

no changes added to commit (use "git add" and/or "git commit -a")

WTF? Let's stash this

$ git stash
Saved working directory and index state WIP on master: 75aadfd Add a `PROJECTS` file at the same level
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	deleted:    projects/Makefile

no changes added to commit (use "git add" and/or "git commit -a")

???? What? Stash again?

$ git stash
Saved working directory and index state WIP on master: 75aadfd Add a `PROJECTS` file at the same level
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	deleted:    PROJECTS

no changes added to commit (use "git add" and/or "git commit -a")

And so on. Git may well have case-sensitive information, but it happily translates patches as-is for the file system, and if the file system is case-insensitive, well...

A fun half hour figuring out this issue.

About

Case insensitivity is... perfectible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published