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

Add a .gitattributes file for line ending settings

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • 3.6.0
    • 3.6.1
    • Ionic
    • 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

            pferre22 Pau Ferrer
            schallm schallm
            Dani Palou Dani Palou
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              29/Mar/19

              Time Tracking

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