-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #361 from polarathene/fix/prevent-commits-with-crlf
fix: Ensure committed files are normalized to LF
- Loading branch information
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 may require LF): | ||
# https://github.com/EricLBuehler/mistral.rs/pull/361 | ||
|
||
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.