Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.g.dart linguist-generated=true
*.freezed.dart linguist-generated=true
Comment on lines +1 to +2
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

For a cross-platform project, it is a best practice to define the default line-ending behavior in .gitattributes. Adding * text=auto ensures that Git handles line endings consistently across different operating systems (Windows, macOS, Linux), which prevents 'phantom' diffs and potential issues in CI/CD pipelines caused by CRLF/LF mismatches.

* text=auto
*.g.dart linguist-generated=true
*.freezed.dart linguist-generated=true

Loading