Boost logo

Boost :

Subject: Re: [boost] [conversion] Isolating the phantom file changes problem
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2013-11-28 05:00:51

On 28 November 2013 08:49, Cox, Michael <mhcox_at_[hidden]> wrote:
> In addition to re-normalizing the line endings, we could also start
> enforcing coding standards, e.g. tabs converted to spaces standard via
> gitconfig/gitattribute filters. Git allows you to define filters in your
> .git/config or ~/.gitconfig file and specifying their use in
> .gitattributes, e.g. in .gitconfig:
> # Convert tabs to 4 spaces (uses Linux expand/unexpand commands, so not
> cross-platform)
> [filter "tabspace"]
> smudge = unexpand --tabs=4 --first-only
> clean = expand --tabs=4 --initial
> [...]

...automatically behind the scene? Scary!

IMHO, this belongs to commit hooks.

Qt's sanitize-commit may be a good example

Best regards,

Mateusz  Loskot,

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