Boost logo

Boost :

Subject: Re: [boost] [git] Line endings in bootstrap.bat on Windows
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2013-11-24 20:40:19

On 25/11/2013 14:07, Quoth Dave Abrahams:
> Björn Pollex <bjoern.pollex_at_[hidden]> writes:
>> I just cloned the modularized Boost repository from Github [1]. Right after
>> the clone is done, git status gives me a complete diff on bootstrap.bat (so
>> probably line endings).
>> I do have autocrlf = true in my system configuration, so this shouldn't be
>> the problem, right?
> It very well might be the problem.

Provided that the backend repository uses LF line endings exclusively
(which is the git-recommended style), autocrlf=true is the recommended
setting on Windows and should not result in a diff being shown if the
checkout was made with this setting in force. [1][2]

You should only run into trouble if the repository is not LF-only or if
your checkout contains mixed-EOL files, either from using editors that
altered EOLs (which will be common on Windows if you don't have
autocrlf=true) or from changing the autocrlf setting after checking out.

If the conversion is not already normalising line endings to LFs,
perhaps it should do so? (With some exceptions for test files
specifically for specific EOL handling, if any.)


Boost list run by bdawes at, gregod at, cpdaniel at, john at