Re: Automatic core.autocrlf?
- From
Andrei Rybak <rybak.a.v@gmail.com>
- Date
- Aug 27, 2018, 17:32 UTC
- Message-ID
- <94afe154-53e1-761a-4a66-4f77188036f7@gmail.com>
- In-Reply-To
- <CACsJy8Bik2Hokgv46ifsFhhvGzdcB=FoWnWs6_k2361s15wOPA@mail.gmail.com>
On 2018-08-27 17:52, Duy Nguyen wrote:
Show 10 quoted lines
> On Mon, Aug 27, 2018 at 5:37 PM Torsten Bögershausen <tboegi@web.de> wrote: >>> In those cases, when it falls back to >>> configuration for line ending management, I want it to be >>> automatically configured based on the host platform. >> > > An alternative is supporting conditional config includes based on > platform or host name, but I don't know if there are more use cases > like this to justify it. >
How about just using unconditional includes?
global.gitconfig (synced across machines):
[include]
path = platform-specific.gitconfigAnd two version of file named "platform-specific.gitconfig", which are not synced, and include only code.autocrlf setting.
-- Best regards, Andrei R.