New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whitespace cleanup #174
Whitespace cleanup #174
Conversation
Thanks for the suggestion on the .gitconfig file, but I'm not 100% sure we want that:
That's at least my impression... |
We had some discussion about a similar issue at numpy-discussion. Chuck Harris found documentation for the svg format stating that LF is the expected line ending. There is some discussion at http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html . See also: http://help.github.com/dealing-with-lineendings/ , http://www.kernel.org/pub/software/scm/git/docs/git-config.html . It looks like the appropriate thing to do is to commit a .gitattributes file along with the existing .gitignore. In that file:
that way git will attempt to convert all text files to LF, with the exception of any files that are explicitly marked for committing with alternative eols. Files in the working directory will generally still have native file endings (see core.eol and core.autocrlf in the gitconfig documentation). |
I'm not too up to speed on those details, but I trust you've followed the minutia on the list, and your description above sounds very reasonable. If you can update this branch with the attributes file you mention as above, I have no problem making the merge, unless someone objects. While whitespace cleanups aren't in general my top priority, if we do it once in an isolated commit and especially if we leave the git setup in more robust form for the future, I have no objection. |
Hi Darren, just checking: do you want to update the pull request with the necessary .gitattributes file? I haven't followed this enough to know precisely what needs to be put in the file (I'm not sure your text in the box above is meant as the actual file contents or just an indication of what would go there). If you do the update, we can merge and close this. Thanks! |
I just got really busy at work, and won't have time to deal with it for a few days. The discussion on the numpy mailing list has become noisy to the point of static. Let's see how it plays out and I'll post a new pull request if warranted. |
No problem, I'll leave this one in your hands and trust you. We can give it a few weeks, and when you have a bit of bandwidth we'll decide whether to update it or just close it. |
The changes in the existing commits are totally fine, but I guess we need to wait until the .gitattributes stuff is addressed. |
I think I'll have time to tie this off this weekend. |
Hey Darren, |
I'll just file a new pull request. |
Huh. I deleted the original whitespace-cleanup remote, made a new branch off master, applied changes, pushed again to a new remote called whitespace-cleanup, and now this pull request reflects the new changes on the new remote. |
OK, I'll merge it now; the merge commit will close it. Thanks a lot for your patience with the review/feedback! |
some files crept in with windows line endings. We should encourage people to add the following to their .gitconfig files: