-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Ensure committed files are normalized to LF
This avoids accidentally committing files with CRLF line endings which `rustfmt` will happily normalize to LF creating a very noisy diff from these invisibles.
- Loading branch information
1 parent
527e7f5
commit ee775c2
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Pattern syntax: | ||
# https://git-scm.com/docs/gitignore#_pattern_format | ||
|
||
# Normalize line endings of all non-binary files to LF upon check-in (`git add` / `git commit`): | ||
* text=auto | ||
|
||
# Use `eol=lf` / `eol=crlf` to enforce specific line endings on checkout for compatibility: | ||
# https://www.git-scm.com/docs/gitattributes/#_eol | ||
# NOTE: | ||
# - This setting implies the `text` attribute. | ||
# - `eol=lf` may not work as expected, if a file was committed with CRLF prior to the introduction of `.gitattribtues`. | ||
# | ||
# Relevant files for this setting: | ||
# - `.sh` (LF) / `.bat` (CRLF) and similar scripts that are platform specific. | ||
# - Scripts that utilize a shebang (`#!/usr/bin/env python3`) to hint the interpreter to run. | ||
# - `Dockerfile` (base image environment likely expects LF): | ||
# https://github.com/docker-mailserver/docker-mailserver/pull/3755 | ||
|
||
Dockerfile* eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.