]> granicus.if.org Git - php/commit
Convert CRLF line endings to LF
authorPeter Kokot <peterkokot@gmail.com>
Sat, 13 Oct 2018 09:23:20 +0000 (11:23 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Sat, 13 Oct 2018 09:23:20 +0000 (11:23 +0200)
commit85290bbfccb29c1c8204652fa5956742732c7d10
tree02b8e656615f8c1f621f4bc0f75c2be5001ca6c7
parentd591c35779dae0345c15411b5f3b8a8836a365e8
Convert CRLF line endings to LF

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
also Git can do output conversion is core.autocrlf=true is set on
Windows and use 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.
17 files changed:
Zend/zend_vm_trace_map.h
ext/exif/tests/bug76164.phpt
ext/gd/tests/bug47946.phpt
ext/gd/tests/bug52070.phpt
ext/gd/tests/bug73968.phpt
ext/intl/tests/resourcebundle.build
ext/mbstring/tests/bug75944.phpt
ext/pcre/tests/bug73612.phpt
ext/session/mod_files.bat
ext/spl/tests/bug73629.phpt
ext/spl/tests/bug74478.phpt
ext/standard/tests/file/ftruncate_bug76422.phpt
ext/standard/tests/file/ftruncate_bug76803.phpt
ext/standard/tests/file/windows_links/bug73962.phpt
ext/standard/tests/streams/bug74090.phpt
win32/build/buildconf.js
win32/syslog.reg