# no autocrlf on Visual Studio subdirectory

3 messages from 2011-06-15 to 2011-06-15. Participants: Aaron Gray, Stephen Bash.
Thread: https://gitlist.dev/t/27628

## Aaron Gray, 2011-06-15 13:52

Subject: no autocrlf on Visual Studio subdirectory
Message-ID: <BANLkTikbnKNHxt5wKDjUWYby+p3w0cHcgg@mail.gmail.com>
URL: https://gitlist.dev/e/BANLkTikbnKNHxt5wKDjUWYby%2Bp3w0cHcgg%40mail.gmail.com

```
Hi,

I am wondering if there is a way of keeping CRLF's under my
VisualStudio2010 subdirectory but applying core.autocrlf on all other
repository directories.

Many thanks in advance,

Aaron

```

## Stephen Bash, 2011-06-15 14:16

Subject: Re: no autocrlf on Visual Studio subdirectory
Message-ID: <5843516.7553.1308147368895.JavaMail.root@mail.hq.genarts.com>
URL: https://gitlist.dev/e/5843516.7553.1308147368895.JavaMail.root%40mail.hq.genarts.com
In-Reply-To: <BANLkTikbnKNHxt5wKDjUWYby+p3w0cHcgg@mail.gmail.com>

```
----- Original Message -----
> From: "Aaron Gray" <aaronngray.lists@gmail.com>
> To: "Git Mailing List" <git@vger.kernel.org>
> Sent: Wednesday, June 15, 2011 9:52:58 AM
> Subject: no autocrlf on Visual Studio subdirectory
> 
> I am wondering if there is a way of keeping CRLF's under my
> VisualStudio2010 subdirectory but applying core.autocrlf on all other
> repository directories.

Short answer is gitattributes eol setting.  Git will fallback to core.autocrlf for files that aren't named in the .gitattributes file.

Potentially useful is this [1] thread.

[1] http://thread.gmane.org/gmane.comp.version-control.git/174413/focus=174496

HTH,
Stephen

```

## Aaron Gray, 2011-06-15 15:27

Subject: Re: no autocrlf on Visual Studio subdirectory
Message-ID: <BANLkTin99+GYd_CViNRo3tg8AA5sUOi6og@mail.gmail.com>
URL: https://gitlist.dev/e/BANLkTin99%2BGYd_CViNRo3tg8AA5sUOi6og%40mail.gmail.com
In-Reply-To: <5843516.7553.1308147368895.JavaMail.root@mail.hq.genarts.com>

```
On 15 June 2011 15:16, Stephen Bash <bash@genarts.com> wrote:
> ----- Original Message -----
>> From: "Aaron Gray" <aaronngray.lists@gmail.com>
>> To: "Git Mailing List" <git@vger.kernel.org>
>> Sent: Wednesday, June 15, 2011 9:52:58 AM
>> Subject: no autocrlf on Visual Studio subdirectory
>>
>> I am wondering if there is a way of keeping CRLF's under my
>> VisualStudio2010 subdirectory but applying core.autocrlf on all other
>> repository directories.
>
> Short answer is gitattributes eol setting.  Git will fallback to core.autocrlf for files that aren't named in the .gitattributes file.
> Potentially useful is this [1] thread.
>
> [1] http://thread.gmane.org/gmane.comp.version-control.git/174413/focus=174496

Many thanks,

Aaron

```
