Skip to content

Commit

Permalink
Revert "Introduce .gitattributes file"
Browse files Browse the repository at this point in the history
This reverts commit 218064d.
  • Loading branch information
Daniel Rosenwasser authored and Daniel Rosenwasser committed Oct 28, 2014
1 parent f3526bd commit e179e05
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .gitattributes

This file was deleted.

5 comments on commit e179e05

@jednano
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DanielRosenwasser why was this commit reverted?

@mhegazy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jedmao after the change a lot of files that did not have the correct file endings were force edited for everybody. we reverted the change to look at these files, fix them then reapply the change.

@jednano
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since Git automatically fixes the line endings, what is it that you are trying to fix manually? You can't get away from it. This commit will force consistent line endings, but once it's in place, it will ensure inconsistent line endings aren't reintroduced. I might be able to submit a different PR with that step already done.

@mhegazy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests should have their own .gitattributes, this way we can have a test that have a different line ending. @DanielRosenwasser is looking into it.

@jednano
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mhegazy @DanielRosenwasser I'll defer to your experience with which tests should have these files, but yes, you can do that by either creating a .gitattributes file in the test folder or adding it to the root, like so:

tests/cases/**/*-crlf.ts text eol=crlf
tests/cases/**/*-lf.ts   text eol=lf

Hope that helps!

Please sign in to comment.