# msysgit: should core.autocrlf=true be the default on Windows?

4 messages from 2007-08-11 to 2007-08-12. Participants: Steffen Prohaska, Dmitry Kakurin.
Thread: https://gitlist.dev/t/9492

## Steffen Prohaska, 2007-08-11 20:56

Subject: msysgit: should core.autocrlf=true be the default on Windows?
Message-ID: <7816DAAF-53CB-468C-9597-36AA94AC6476@zib.de>
URL: https://gitlist.dev/e/7816DAAF-53CB-468C-9597-36AA94AC6476%40zib.de

```
I think core.autocrlf=true should be the default on Windows.
I strongly believe that Windows users expect this default,
as others Windows application rely on it. I recently tried to
use kdiff3 on Windows and got satisfactory results only after
using autocrlf.

autocrlf should be set right from the very beginning. If you
found out about it later, you would have to convert your existing
working trees, which is not too easy. Therefore we should
guide the user to a reasonable default.

We can report the defaults we chose in *bold* after the
installation completed and give a hint where further background
information can be found, and what would be needed to adjust
the default.

What do you think?

Would /etc/gitconfig in msysgit be the right place to set the
default?

	Steffen

```

## Dmitry Kakurin, 2007-08-12 05:36

Subject: Re: msysgit: should core.autocrlf=true be the default on Windows?
Message-ID: <84CFEBB5D7FE48FF86FEF3289C8DDAA8@ntdev.corp.microsoft.com>
URL: https://gitlist.dev/e/84CFEBB5D7FE48FF86FEF3289C8DDAA8%40ntdev.corp.microsoft.com
In-Reply-To: <7816DAAF-53CB-468C-9597-36AA94AC6476@zib.de>

```
Please keep in mind that msysgit is targeting developers who want to contribute to MinGW port of git.
Since building and editing happens in MinGW environment the LF-only default seems reasonable.
On the other hand, setup for end-users should have it as default, I agree.
Please report this issue here: http://code.google.com/p/msysgit/issues/list

- Dmitry
----- Original Message ----- 
From: "Steffen Prohaska" <prohaska@zib.de>
Newsgroups: gmane.comp.version-control.git
To: "Johannes Schindelin" <Johannes.Schindelin@gmx.de>; "Marius Storm-Olsen" <marius@trolltech.com>
Cc: "Git Mailing List" <git@vger.kernel.org>
Sent: Saturday, 11 August 2007 13:56
Subject: msysgit: should core.autocrlf=true be the default on Windows?


>I think core.autocrlf=true should be the default on Windows.
> I strongly believe that Windows users expect this default,
> as others Windows application rely on it. I recently tried to
> use kdiff3 on Windows and got satisfactory results only after
> using autocrlf.
> 
> autocrlf should be set right from the very beginning. If you
> found out about it later, you would have to convert your existing
> working trees, which is not too easy. Therefore we should
> guide the user to a reasonable default.
> 
> We can report the defaults we chose in *bold* after the
> installation completed and give a hint where further background
> information can be found, and what would be needed to adjust
> the default.
> 
> What do you think?
> 
> Would /etc/gitconfig in msysgit be the right place to set the
> default?
> 
> Steffen
> 
>

```

## Steffen Prohaska, 2007-08-12 09:36

Subject: Re: msysgit: should core.autocrlf=true be the default on Windows?
Message-ID: <F5024D9F-B008-4C14-B36B-A2E8BEFD0FE4@zib.de>
URL: https://gitlist.dev/e/F5024D9F-B008-4C14-B36B-A2E8BEFD0FE4%40zib.de
In-Reply-To: <84CFEBB5D7FE48FF86FEF3289C8DDAA8@ntdev.corp.microsoft.com>

```

On Aug 12, 2007, at 7:36 AM, Dmitry Kakurin wrote:

> Please keep in mind that msysgit is targeting developers who want  
> to contribute to MinGW port of git.

Why that?. In my opinion msysgit is already the best git you can
get on Windows. It's a one click, self-contained installation,
with the most up-to-date git. The installation is kept separate
from cygwin, which saves a lot of trouble with textmode/binmode.
It's easy to get started, easy to contribute fixes, easy to upgrade
to a new version. It should be polished a bit, but then I would
announce it as _the_ default way of installing git on Windows.


> Since building and editing happens in MinGW environment the LF-only  
> default seems reasonable.

I have my msysgit set to autocrlf=true and have no problems.
It's even better now, because I can open files in Windows
programs without problems.


> On the other hand, setup for end-users should have it as default, I  
> agree.

But our end-users are developers! We should leverage on that and make
msysgit the 'end-user' installation. Developers tend to be interested
in fixing problems with their working environment. We should provide
them a _very_ easy way of submitting their fixes and improvements
back to msysgit, e.g. via mob branch. This could speed up the Windows
porting effort tremendously.

I also think we should work in the same environment that we propose
to our end-users. If we believe end-users should work with  
autocrlf=true,
we should do so as well, just to be sure that our recommendation is
the right one.


> Please report this issue here: http://code.google.com/p/msysgit/ 
> issues/list

done.

	Steffen

```

## Dmitry Kakurin, 2007-08-12 10:36

Subject: Re: msysgit: should core.autocrlf=true be the default on Windows?
Message-ID: <a1bbc6950708120336p61c7f10fw8d2d43ee7f5a924c@mail.gmail.com>
URL: https://gitlist.dev/e/a1bbc6950708120336p61c7f10fw8d2d43ee7f5a924c%40mail.gmail.com
In-Reply-To: <F5024D9F-B008-4C14-B36B-A2E8BEFD0FE4@zib.de>

```
I'll be short.

On 8/12/07, Steffen Prohaska <prohaska@zib.de> wrote:
> > Please keep in mind that msysgit is targeting developers who want
> > to contribute to MinGW port of git.
> Why that?. In my opinion msysgit is already the best git you can
> get on Windows.

End-user version could be made MUCH smaller.

> > On the other hand, setup for end-users should have it as default, I
> > agree.
>
> But our end-users are developers! We should leverage on that and make
> msysgit the 'end-user' installation. Developers tend to be interested
> in fixing problems with their working environment. We should provide
> them a _very_ easy way of submitting their fixes and improvements
> back to msysgit, e.g. via mob branch. This could speed up the Windows
> porting effort tremendously.

I agree. That's why msysgit was created.
On the other hand, for many user Git is just a tool that they use to
accomplish something important for them (completely unrelated to git).
That's why end-user installer exists as well.

-- 
- Dmitry

```
