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

[INFRA] Enforce consistent line endings via .gitattributes #861

Merged
merged 1 commit into from Aug 24, 2021

Conversation

DimitriPapadopoulos
Copy link
Collaborator

@DimitriPapadopoulos DimitriPapadopoulos commented Aug 23, 2021

.gitattributes Outdated Show resolved Hide resolved
Comment on lines +2 to +3
*.png -text
*.jpg -text
Copy link
Member

Choose a reason for hiding this comment

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

The GitHub guide has the following for these lines:


# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary

Is -text equivalent? I think I find the GitHub way (together with the comment) more straight forward.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess "not text" is the same as "binary". I just copied over from the source - the gitattributes documentation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually binary is equivalent to -text -diff. Since this patch is about line endings, I'd rather stick with the documentation.

@sappelhoff sappelhoff changed the title [INFRA] Enforce consistent line endings [INFRA] Enforce consistent line endings via .gitattributes Aug 24, 2021
@sappelhoff sappelhoff merged commit 04f0c0c into bids-standard:master Aug 24, 2021
@sappelhoff
Copy link
Member

Thanks @DimitriPapadopoulos!

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.

[INFRA] Add a .gitattributes file to enforce line endings
3 participants