[CONTROLLER-982] Inconsistent line ending styles of the source files Created: 03/Nov/14  Updated: 25/Jul/23  Resolved: 30/Jun/15

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Jozef Behran Assignee: Jozef Behran
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2298

 Description   

The vast majority of files use UNIX style line endings but I found some files with Windows style line endings. Examples of files with Windows style line endings seen so far are (in ec7cac6937):

features/adsal-compatibility/pom.xml
opendaylight/archetypes/odl-model-project/src/main/resources/archetype-resources/pom.xml
opendaylight/md-sal/sal-dom-xsql-config/pom.xml
opendaylight/md-sal/sal-karaf-xsql/pom.xml



 Comments   
Comment by Jozef Behran [ 03/Nov/14 ]

One solution to this problem that I found is: Add ".gitattributes" file to the root of the repository. According to Git documentation, this file allows a repository to configure end of line handling independently of whether the new user did this configuration or not. This would prevent users from pushing files with inconsistent line ending style because of them forgetting to tell Git to canonize these. Additionally, Windows users should now be able to see proper end of lines on the files without taking special preparations first.

Comment by Carol Sanders [ 04/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL

Generated at Wed Feb 07 19:54:23 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.