ignore images line ending on older git versions · rust-lang/rust@645b7c2 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 645b7c2
ignore images line ending on older git versions
On Ubuntu 16.04 git 2.7.4 tries to fix the line ending of .png and .ico files, and obviously it ruins them. This commit adds an attribute to those files to properly mark them as binary.
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -9,3 +9,7 @@ src/etc/installer/gfx/* binary | ||
9 | 9 | *.woff binary |
10 | 10 | src/vendor/** -text |
11 | 11 | Cargo.lock -merge linguist-generated=false |
12 | + | |
13 | +# Older git versions try to fix line endings on images, this prevents it. | |
14 | +*.png binary | |
15 | +*.ico binary |