Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-904

Undesired conversion of line endings (CR-LF to LF)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 1.1
    • 1.0.8
    • Mercurial
    • None
    • Windows

      SourceTree will convert a whole file from CR-LF (win) to LF (linux) if you use the "Discard Selected Lines" function for a CR-LF file on Windows.

      Reproduce:

      • Under Windows, create an ANSI file with CR-LF ending and check it into your repository.
      • Modify a single line (or multiple lines) inside an external editor (notepad++).
      • Select some lines of this file inside SourceTree and chose "Discard selected Lines"

      Result:

      • The whole file will be converted to LF and for this marked as 100% modified.

        1. after.png
          10 kB
          Abu Badabu
        2. before.png
          15 kB
          Abu Badabu

              sstreeting Steve Streeting (Inactive)
              3eae22ba6002 Abu Badabu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: