Skip to content
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

Add .gitattributes for correct line-breaks by checkout #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Tobias-B-Besemer
Copy link
Contributor

I will suggest you to add a file ".gitattributes" for correct line-breaks by checkout to your repo.

We at https://github.com/bleachbit/bleachbit started to use a file ".gitattributes" to have correct line-breaks by checkout no matter if you checkout with Windows (CRLF), or with a Unix-like system (LF).
This helps us e.g. by linting and solves some other issues that came up in the past...
For the beginning I created a simple and basic ".gitattributes" file.
In this file is e.g. defined, that NSI & NSH files from NSIS have ever a CRLF as line-break, because NSIS is a Windows installer and therefor Windows line-breaks make IMHO much sense...
After introducing ".gitattributes" we got in some trouble with NsisMultiUser.nsh and UAC.nsh.
I guess the problems come from because the files have no CRLF... (?)
And so I report now this problem upstream (by you) and want suggest you to use a ".gitattributes" for checkout in future, too.
The basic ".gitattributes" I have created is this PR. You can easily edit and improve it, or just use it as it is...
...if you use I will be really happy and thankful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant