Skip to content

Use .gitattributes to normalise line endings on check-in#1465

Merged
Den4200 merged 1 commit into
mainfrom
gitattributes
Mar 14, 2021
Merged

Use .gitattributes to normalise line endings on check-in#1465
Den4200 merged 1 commit into
mainfrom
gitattributes

Conversation

@MarkKoz
Copy link
Copy Markdown
Contributor

@MarkKoz MarkKoz commented Mar 13, 2021

Remove the mixed line endings pre-commit hook because it is obsolete.

Relying on git to handle line endings means contributors have more flexibility with which line endings they want to use on check-out. The settings in .gitattributes only impose which line endings will be used upon check-in (LF), which should not impact local development; git will still respect the core.eol and core.autocrlf settings.

Remove the mixed line endings pre-commit hook because it is obsolete.

Relying on git to handle line endings means contributors have more
flexibility with which line endings they want to use on check-out.
The settings in .gitattributes only impose which line endings will
be used upon check-in (LF), which should not impact local development;
git will still respect the core.eol and core.autocrlf settings.
@MarkKoz MarkKoz added p: 3 - low Low Priority a: tools Development related to our toolchain (Docker, pipenv, flake8) t: enhancement Changes or improvements to existing features labels Mar 13, 2021
Copy link
Copy Markdown
Contributor

@HassanAbouelela HassanAbouelela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always appreciate changes that lower the barrier to entry. I've tested this setup, and it seems hard to mess things up, intentionally or accidentally. Thank you.

@Den4200 Den4200 merged commit f20fa1c into main Mar 14, 2021
@Den4200 Den4200 deleted the gitattributes branch March 14, 2021 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tools Development related to our toolchain (Docker, pipenv, flake8) p: 3 - low Low Priority t: enhancement Changes or improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants