Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2797

Add a .gitattributes file for line ending settings

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.6.1
    • Component/s: Ionic
    • Labels:
    • Sprint:
      Moodle Mobile 3.6.1

      Description

      It would be nice if the repository contained a .gitattributes file that specifies the line endings since the tslint file requires *.ts files to be LF. 

      GitHub's suggestion

      text eol=lf 

      Git will always convert line endings to LF on checkout. You should use this for files    that must keep LF endings, even on Windows.

      I'm not sure if all moodlemobile wants all files to be LF, but here is an example .gitattributes file that would ensure *.ts remain LF:
       

      * text=auto 
      *.ts text eol=lf

       
       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                29/Mar/19

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h