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

Add a .gitattributes file for line ending settings

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • 3.6.1
    • 3.6.0
    • Ionic
    • Moodle Mobile 3.6.1

      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

       
       

            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

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.