Comments (11)
There has been some upstream-work on this:
http://mid.gmane.org/20100904082509.GC10140@burratino
The problem seems to be that NATIVE_CRLF is only set for the MSVC build, and not the MinGW-build. The patch there doesn't seem to have been picked up yet, though. And as things are now, the hunk needs to be against config.mak.uname instead of Makefile.
from git.
Seems like this patch has now been applied upstream (though I do not see the changes yet in any of the upstream repositories). I'm leaving this open until we get the fix with the next rebasing merge of upstream.
from git.
@sschuberth I think it's this commit.
from git.
@taspeotis Right, that is the upstream commit which will be part of upstream Git 1.8.3, but we do not have that commit in our Windows fork yet.
from git.
Odd, I still see this issue in Git for Windows 1.8.3 although we now have NATIVE_CRLF = YesPlease
in config.mak.uname
for the MINGW build.
from git.
Ah - I noticed this during testing 1.8.3. I have a branch on github called pt/native-crlf where I actually push that flag to the compiler so it can have an effect. However, it introduces a few new failures in the test suite and I elected not to include that in the release. I guess making it a pull req might tie it into this bug somehow.
from git.
Fixed on master.
from git.
I think that instead of these code changes, it would be better to change the docs to read:
This ensures that all files that git considers to be the text will have normalized (LF) line endings in the repository. If core.autocrlf=true, core.eol will be used to normalize the files in your working directory. core.eol defaults to native line endings for your platform.
I blogged about this just now.
from git.
Without the code-changes, that last sentence would be wrong.
from git.
True, but the sentence before it isn't correct with the changes. I think it would be best if the spec was clarified what the behavior should be. I think it would be best if the working directory matched what is in the repository by default.
I did a bunch of testing a filled a spreadsheet full of tests.
from git.
I think it would be best if the working directory matched what is in the repository by default.
If that we the case, Windows users would commit new files with CRLF by default, and Linux users would commit new files with LF by default. That's certainly not a good idea for a cross-platform project on which developers from multiple host OSes work.
Anyway, the discussion is going a bit off-topic here. There original issue is resolved, and Git for Windows now works as currently specified. If you want to discuss whether the current specification makes sense, please take that discussion to the upstream Git mailing list.
from git.
Related Issues (20)
- Redirect to Git for Windows 2.x HOT 10
- Why I am not able to use curl commands ? HOT 1
- "Entrust Root Certification Authority - G2" is not trusted HOT 5
- .git subdirectory is created in the wrong place on checkout when using relative directory HOT 16
- umeng123
- Windows installer not cryptographically signed. HOT 3
- Using mingw-perl HOT 5
- git rev-list crashes when --show-notes and --grep are specified HOT 2
- Git SVN crash HOT 3
- Git daemon and TortoiseGit HOT 2
- fox
- Git Blame - file.dot is not a Word Document HOT 3
- Missing patch tool for release candidate of Git for Windows. HOT 1
- Custom mergetool cmd support in git GUI HOT 1
- Git.exe is stuck if I run a wrong command. HOT 1
- Not able to clone gerrit repo over https via gitbash(windows client) HOT 5
- please add a release to announce the move of release downloads to the git-for-windows repo HOT 7
- <invalid>
- Filename too long when cloning a repo HOT 3
- Cannot Create Shortcut, Cannot Find App, Cannot Open App HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git.