Skip to content

Commit

Permalink
Convert CRLF line endings to LF
Browse files Browse the repository at this point in the history
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.

Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)

To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`

Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).

Changed files shouldn't cause issues on modern Windows platforms because
Git can do output conversion if core.autocrlf=true is set on Windows
and then uses CRLF newlines in all files in the working tree.

Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
  • Loading branch information
petk committed Oct 18, 2018
1 parent bf19f76 commit 0f4f47c
Show file tree
Hide file tree
Showing 2 changed files with 372 additions and 372 deletions.
Loading

0 comments on commit 0f4f47c

Please sign in to comment.