Skip to content

chore: add .gitattributes to normalize line endings#411

Merged
oco777 merged 1 commit intomainfrom
codex/add-.gitattributes-for-line-endings
Jan 18, 2026
Merged

chore: add .gitattributes to normalize line endings#411
oco777 merged 1 commit intomainfrom
codex/add-.gitattributes-for-line-endings

Conversation

@oco777
Copy link
Copy Markdown
Owner

@oco777 oco777 commented Jan 18, 2026

Motivation

  • Enforce LF (eol=lf) as the canonical line ending and ensure Unity-related files and common docs/configs are handled correctly by Git.

Description

  • Add repository-root .gitattributes with * text=auto eol=lf, explicit text eol=lf rules for Unity/C#/UI Toolkit files (*.cs, *.uxml, *.uss, *.shader, *.compute, *.meta), rules for docs/config (*.md, *.txt, *.json, *.yml, *.yaml), and binary entries for image, audio, font, model and scene extensions (e.g. *.png, *.wav, *.ttf, *.fbx, *.unity).

Testing

  • No automated tests were run for this change.

Codex Task

@oco777 oco777 merged commit afb9f5d into main Jan 18, 2026
3 checks passed
@oco777 oco777 deleted the codex/add-.gitattributes-for-line-endings branch January 18, 2026 00:52
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a1d86fcf46

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .gitattributes
*.ttf binary
*.otf binary
*.fbx binary
*.unity binary
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Treat Unity scene files as text, not binary

Marking *.unity as binary prevents Git from doing line-based diffs and merges on scene files, which are YAML text. This makes resolving concurrent edits to scenes much harder (Git won’t attempt textual merges and most tooling will treat the file as opaque), so collaborating on scene changes becomes painful and conflicts are more likely to require manual rework. Consider keeping *.unity as text eol=lf like other Unity YAML assets.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant