From: Pete B. <pb...@gm...> - 2010-12-07 23:53:49
|
Ran a test with the following options (which, AFAIK are MSYS-Git's default) using my new megatest branch, which is based branched off libusb's very first commit. For reference, since this is what I create as new .sh files, the output of my "git config -l" for the test can be found at [1] I'm afraid I still managed to get CRLF when using both "eol=lf" and "text eol=lf" when I switched back. o added .gitattributes ("eol=lf", no "text") o added config.sh (LF) => config.sh is LF, autogen.sh is CRLF o dos2unix autogen.sh and try to commit => nothing to commit (logical since already LF in repo) o git checkout master o git checkout megatest => both .sh files CRLF o modify .gitattributes ("text eol=lf") o added config2.sh (LF) o dos2unix *.sh and try to commit => nothing to commit o git checkout master o git checkout megatest => all .sh files CRLF I'll try with both autocrlf and safecrlf next, but I do understand that I was using MSYSGit's default settings for those here. If you can identify what I did wrong here, or may have missed, let me know. Regards, /Pete [1] http://git.libusb.org/?p=libusb-pbatard.git;a=commitdiff;h=ac15349eb9cd5e7196fd5fe4eec21d53cd88ff07;js=1 |