Conversation
|
Haha awesome! 💯 🙌
|
|
Im currently reviewing your changes. Can you give me some details why git rm is used? |
|
I'm using core.ignorecase set to false, so when the capitalization of file names change, git will have 2 copies of the file--one in the new capitalization and one in the old capitalization. newFileInGit and baseFileInGit are for the newly added file. file is a file in the git tree. The "gir rm" is removing the file in the git file tree with the old capitalization. Does that make sense? |
|
Yeah that helped me, thank you. So this is how it works:
For some reason this results in a rename 😄 Do you know details, why its like that?^^ EDIT: I'll write some tests and will run them also on a linux machine. |
|
Instead of git ls-tree --name-only HEAD I used the shorter command git ls-files (linux has problems referencing to HEAD in the first command). Just in case you want to update that on your part as well. I merged your pr with these two commits 8f4c3e8 / b0877e5. Thank you again for changes/enhancements 👍 PS: In order that you get higher on the toplist of the contributors 💸 💰 , you need to add your ibm mail address on your github-profile. So that github knows it was you (aka your user) who did that, currently its just a girl named Lauren, who did those commits 😜 |
|
git rm is not renaming -- it's removing. When the code detects there is a new file added to Git, it checks to see if there is another file with the same characters but different capitalization. If it finds one, it removes it. |
I finally have a pull request -- woo hoo! Two concerns: