Re-enable 'crlf' attributes on *.cs
authorRaja R Harinath <harinath@hurrynot.org>
Sun, 1 Aug 2010 18:34:50 +0000 (00:04 +0530)
committerRaja R Harinath <harinath@hurrynot.org>
Sun, 1 Aug 2010 18:42:34 +0000 (00:12 +0530)
This fixes EOL conversions flagged by git 1.7.1 core.autocrlf=true.  At this
point, neither git 1.7.1 nor 1.7.2 show any automatic CRLF normalization.
I think we're ready for another experiment.

There seems to be a difference in the handling of mixed line-ending files
between git 1.7.2 and older versions, when core.autocrlf is set to true.

.gitattributes
mcs/errors/.gitattributes
mcs/mcs/import.cs
mcs/mcs/namespace.cs
mcs/tests/.gitattributes

index 9f803813ed27451d773651c9ff76689009646408..9bce5208ff0139c21c5e5faf2c45f0e60266c352 100644 (file)
@@ -1,13 +1,18 @@
-#*.c   crlf
-#*.h   crlf
-#*.cs  crlf
-#*.sh  crlf
+# ensure LF endings on all checkouts
+configure.in crlf=input
 
-#ChangeLog     crlf
-#*akefile*     crlf
-#*.sources     crlf
+# ensure native line endings on checkout
+*.c    crlf
+*.h    crlf
+*.cs   crlf
+*.sh   crlf
 
-# don't do anything to line-endings.  Let CRLFs go into the repo
+.gitattributes crlf
+ChangeLog      crlf
+*akefile*      crlf
+*.sources      crlf
+
+# don't do anything to line-endings.  Let CRLFs go into the repo, and CRLF on checkout
 *.bat          -crlf
 *.sln          -crlf
 *.*proj*       -crlf
index cbea4b091712544f3fbd0242210216e58aef6949..581562408d8a111aea0b9233e25354da308d4537 100644 (file)
@@ -79,3 +79,5 @@
 /cs1746.cs -crlf
 /gcs0307-5.cs -crlf
 /gcs1579.cs -crlf
+/CS0534-6-lib.cs -crlf
+/cs0133-2.cs -crlf
index 597b1a39accf5c1ccd619417c824a485a8a222fd..234429676cc2497334d7fc40cac5074e3cd853c8 100644 (file)
@@ -682,11 +682,11 @@ namespace Mono.CSharp
                        }
 
                        if ((ma & MethodAttributes.Static) != 0) {
-                               mod |= Modifiers.STATIC;\r
+                               mod |= Modifiers.STATIC;
                                return mod;
                        }
                        if ((ma & MethodAttributes.Abstract) != 0 && declaringType.IsClass) {
-                               mod |= Modifiers.ABSTRACT;\r
+                               mod |= Modifiers.ABSTRACT;
                                return mod;
                        }
 
index 040363edeff411f339ee172b32f8d9ae579c5f69..a7442ae87c0ff83da9f0ceaa4c3d3f9e686b3960 100644 (file)
@@ -1046,11 +1046,11 @@ namespace Mono.CSharp {
                                        candidates = a;
                                else
                                        candidates.AddRange (a);
-                       }\r
-\r
-                       scope = parent;\r
-                       if (candidates != null)\r
-                               return candidates;\r
+                       }
+
+                       scope = parent;
+                       if (candidates != null)
+                               return candidates;
 
                        if (parent == null)
                                return null;
@@ -1060,8 +1060,8 @@ namespace Mono.CSharp {
                        //
                        Namespace parent_ns = ns.Parent;
                        do {
-                               candidates = parent_ns.LookupExtensionMethod (extensionType, null, name, arity);\r
-                               if (candidates != null)\r
+                               candidates = parent_ns.LookupExtensionMethod (extensionType, null, name, arity);
+                               if (candidates != null)
                                        return candidates;
 
                                parent_ns = parent_ns.Parent;
index b823b23c280b7bbe692ba06062da7259e70d69c9..2f1fd72e9df44e7d42f8dfe59c1b194a2d801572 100644 (file)
@@ -46,3 +46,7 @@
 /gtest-525.cs -crlf
 /gtest-linq-24.cs -crlf
 /test-788.cs -crlf
+/gtest-anon-63.cs -crlf
+/gtest-exmethod-37.cs -crlf
+/gtest-iter-14.cs -crlf
+/test-anon-95.cs -crlf