Skip to content

Add .gitattributes for consistent line ending handling#1185

Open
Dipro-cyber wants to merge 1 commit into
oss-aspen:devfrom
Dipro-cyber:issue-1062-gitattributes
Open

Add .gitattributes for consistent line ending handling#1185
Dipro-cyber wants to merge 1 commit into
oss-aspen:devfrom
Dipro-cyber:issue-1062-gitattributes

Conversation

@Dipro-cyber

Copy link
Copy Markdown
Contributor

Pull Request Change Description

Adds a .gitattributes file to enforce consistent LF line endings across the repository, addressing issues caused by Windows-style CRLF line endings being introduced on Windows machines (as described in #1062).

  • * text=auto — default automatic normalization for all text files
  • *.py, *.sh, *.md, *.yaml, *.yml — explicitly enforced LF (eol=lf)
  • Binary files (images) marked as binary to prevent modification

Closes #1062

Generative AI disclosure

  • This contribution was assisted or created by Generative AI tools.
    • What tools were used? Kiro (AI-powered dev environment)
    • How were these tools used? Generated the .gitattributes file content
    • Did you review these outputs before submitting this PR? Yes

Adds a .gitattributes file to ensure Python and other text files
always use LF line endings, preventing issues caused by Windows-style
CRLF line endings being introduced on Windows machines.

- Sets default text=auto for automatic normalization
- Enforces eol=lf for .py, .sh, .md, .yaml, and .yml files
- Marks binary files (images) as binary to prevent modification

Closes oss-aspen#1062
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.

Add .gitattributes for defining how to handle line endings

1 participant