]> git.proxmox.com Git - libgit2.git/commit - src/buf_text.h
crlf: pass-through mixed EOL buffers from LF->CRLF
authorCarlos Martín Nieto <cmn@dwim.me>
Thu, 19 Jun 2014 09:45:46 +0000 (11:45 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Mon, 23 Jun 2014 20:27:12 +0000 (22:27 +0200)
commit5a76ad35aaf709503dfc939464715666919180f8
tree21a04047450efad085963790e081540cfb1e3614
parent1589aa0c4d48fb130d8a5db28c45cd3d173cde6d
crlf: pass-through mixed EOL buffers from LF->CRLF

When checking out files, we're performing conversion into the user's
native line endings, but we only want to do it for files which have
consistent line endings. Refuse to perform the conversion for mixed-EOL
files.

The CRLF->LF filter is left as-is, as that conversion is considered to be
normalization by git and should force a conversion of the line endings.
src/buf_text.c
src/buf_text.h
tests/checkout/crlf.c
tests/core/buffer.c