8000 Add gitattributes file to standardize line endings · Issue #7191 · google/blockly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add gitattributes file to standardize line endings #7191
Closed
@maribethb

Description

@maribethb

🚧⚠️🚧 This issue is being saved for Grace Hopper Open Source Day. 🚧⚠️🚧 An event we're running to help girls and non-binary technologists make their first contributions to open source! Please see our list of help wanted issues if you'd like to contribute!


Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

If you change files when working on Windows, you will end up checking in files with Windows-style CRLF line endings, but the library should use Linux-style LF endings.

To rectify this, we should add a .gitattributes file with the following content:

* text=auto

This will have Git automatically convert the line endings in any text-based file (so not binary files like images) to LF when checking them out, but allow you to use CRLF endings on your local copy if you're using Windows.

h/t this article for the info

Metadata

Metadata

Assignees

Labels

ghc-osdReserved for open source day: https://anitab-org.github.io/open-source-day/good first issueissue: bugDescribes why the code or behaviour is wrongsize: smallBugs that can be picked up and completed in 1-3 days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0