Boost logo

Boost :

Subject: Re: [boost] [conversion] Isolating the phantom file changes problem
From: Daniel James (daniel_at_[hidden])
Date: 2013-11-27 02:00:19


> On 26/11/2013 20:18, Quoth Jürgen Hunold:
>>
>> The reason for the "image/*" setting for svg was to have them displayed as
>> images when viewed in a web browser. But those display settings can be
>> better
>> configured server-side. My experience is to have all text file eol-style
>> "native" and mime-type "text/something" to get the best cross-platform
>> integration. This is true even for .vcproj files as you can then
>> script-edit
>> them on Unix without problems.

Changing subversion properties doesn't fix historical data, so it
won't fix anything that we can't fix in git.

On 26 November 2013 23:34, Gavin Lambert <gavinl_at_[hidden]> wrote:
>
> Another possibility might be to explicitly mark all text files in
> .gitattributes with eol=lf and then run the conversion; I think that would
> fix the repository blobs, and then the eol attribute can be removed for
> actual use.

The conversion doesn't respect .gitattributes, that's why there's a
problem. We can fix these issues in current and future versions by
normalizing the files (as described in the gitattributes man page).

Since we can't fix these files in historical versions we could re-run
the conversion with gitattributes that unsets the text attribute for
the problematic files (something like "*.bat -text", "*.vsproj -text",
"*.svg -text"). Then in git update the gitattributes (to something
like "*.bat text eol=crlf", "*.vsproj text eol=crlf", "*.svg text")
and normalize the files so that it does what we want. We can script
that, so it shouldn't require too much work.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk