(no title)
jxhdbd | 11 months ago
There are so many random line conversions going on and the detection on what is a binary file is clearly broken.
I don't understand why the default would be anything but "commit the file as is"
jxhdbd | 11 months ago
There are so many random line conversions going on and the detection on what is a binary file is clearly broken.
I don't understand why the default would be anything but "commit the file as is"
layer8|11 months ago
Because it’s not uncommon for dev tools on Windows to generate DOS line endings when modifying files (for example when adding an element to an XML configuration file, all line endings of the file may be converted when it is rewritten out from its parsed form), and if those where committed as-is, you’d get a lot of gratuitous changes in the commit and also complaints from the Unix users.
For Git, the important thing is to have a .gitattributes file in the repository with “* text=auto” in it (plus more specific settings as desired). The text/binary auto-detection works mostly fine.
kbolino|11 months ago
hnlmorg|11 months ago
Though this has nothing to do with FTP. I’d already abandoned that protocol by then.
IshKebab|11 months ago
And I agree "commit the file as-is" should be the default - what programming editor can't handle unix newlines?