threads / discuss / 27628

no autocrlf on Visual Studio subdirectory

Subject: no autocrlf on Visual Studio subdirectory

## tl;dr

3 messages between Jun 15, 2011 and Jun 15, 2011.

replies: 2people: 2as markdown or json

Aaron Gray· Jun 15, 2011, 13:52 UTC · lore
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· Jun 15, 2011, 14:16 UTC · re: Aaron Gray · lore

Re: no autocrlf on Visual Studio subdirectory

----- Original Message -----
Show 8 quoted lines
> 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· Jun 15, 2011, 15:27 UTC · re: Stephen Bash · lore

Re: no autocrlf on Visual Studio subdirectory

On 15 June 2011 15:16, Stephen Bash <bash@genarts.com> wrote:
Show 14 quoted lines
> ----- 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

← back to recent threads