[gstreamer-bugs] [Bug 587970] New: Make git repository LF only for the benefit of Windows clients

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jul 7 06:22:38 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=587970

  GStreamer | gstmm | Ver: git
           Summary: Make git repository LF only for the benefit of Windows
                    clients
           Product: GStreamer
           Version: git
          Platform: Other
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstmm
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: philipj at opera.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


The git repository doesn't care about file endings, but there is a
core.autocrlf flag which is set by default on windows. This converts all file
endings to CRLF on checkout and back to LF on commit. However, it breaks
completely when there are mixed CRLF/LF in the repository. You get bogus
changes which means you can't switch branches, you can't see actual changes
amount all the CRLF noise, etc.

I've tried to find advice about this, but all I've heard is "make the
repository LF and use core.autocrlf".

Suggest simply converting all files to LF to be rid of the problem. Attaching
the (huge) diffs from a fresh checkout of the repositories I've found that need
fixing. Perhaps a script could do it as well, but the diffs are there if you
need them.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=587970.




More information about the Gstreamer-bugs mailing list