5 ms·
As someone who has to deal with coworkers who keeps sending me .DS_Store files in every compressed archive, folder, and new project commit. I agree, this must d
by overshard 15y ago
As someone who has to deal with coworkers who keeps sending me .DS_Store files in every compressed archive, folder, and new project commit. I agree, this must die.
I even have a script built around just cleaning .DS_Store from these items. This should not be something that I need...
- jws 15y agoUnix users are offended by all the useless carriage returns in HTTP too, (and heaven forbid source files) but there just has to be some tolerance if we are all to get along. You can probably augment your VFS dispatch functions to never report a .DS_Store file and to delete one and retry any time a directory remove fails and you'll never know they exist! Or you could just ignore them the way Unix users ignore carriage returns and Windows users ignore vi's tilde backup files.
- drivebyacct2 15y agoFunny, I'm on a Linux system more often than Mac or Windows and the carriage returns drive me insane. Also, because the Windows users on my team are the ones that can't manage to figure out how to get their IDE or Git to leave our line endings alone. Our least performing team member dominates our git stats because he repeatedly manages to change nearly every line of code in our project.
- dcosson 15y agoWeird, the windows git client defaults to "checkout windows line endings, commit unix line endings" or something to that effect. I do a lot of data analysis and end up transferring text files manually and having to worry about carriage returns all the time, but I've never had that problem with git. There's an easy command line utility called flip [1] that makes dealing with line endings pretty simple. But yes, it is a ridiculous thing to have to worry about. [1] https://ccrma.stanford.edu/~craig/utility/flip/flip.cpp https://ccrma.stanford.edu/~craig/utility/flip/flip.cpp
- DougBTX 15y agoI'd recommend talking to the rest of your team to work out a consensus. With git you'll need to agree on values for core.autocrlf and core.eol. Perhaps you can take advantage of the time of year to offer an olive branch?
- jrockway 15y agoThis is a good use case for "git filter-branch" and a lecture along the lines of "stop doing that".