Skip to content

[CleanUp][NFC] Standardize line endings to LF#294

Merged
BenkangPeng merged 2 commits into
tancheng:masterfrom
BenkangPeng:CRLF2LF
Jun 4, 2026
Merged

[CleanUp][NFC] Standardize line endings to LF#294
BenkangPeng merged 2 commits into
tancheng:masterfrom
BenkangPeng:CRLF2LF

Conversation

@BenkangPeng
Copy link
Copy Markdown
Collaborator

@BenkangPeng BenkangPeng commented Jun 4, 2026

This PR converts all CRLF line endings to LF across the repository.

Standardizing on LF ensures that the codebase remains consistent regardless of whether a developer is working on Windows(Using CRLF in default), Linux(LF), or macOS(LF). It can reduces diff noise, which prevents phantom changes in Git where entire files appear modified just because of a change in line ending settings in a developer's IDE, e.g., #293 (comment)

This PR has no functional change.

Copy link
Copy Markdown
Owner

@tancheng tancheng left a comment

Choose a reason for hiding this comment

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

What should users do when they create new files or modify existing files? i mean how to apply the required format?

@BenkangPeng
Copy link
Copy Markdown
Collaborator Author

What should users do when they create new files or modify existing files? i mean how to apply the required format?

It's guaranteed by .gitattributes:

https://github.com/tancheng/VectorCGRA/pull/294/changes#diff-618cd5b83d62060ba3d027e314a21ceaf75d36067ff820db126642944145393eR2

CRLF will be replaced by LF automatically when users git commit

@BenkangPeng BenkangPeng merged commit eb71842 into tancheng:master Jun 4, 2026
2 checks passed
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.

2 participants