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

Undesired conversion of line endings of whole file when discarding selected lines (CR-LF to LF)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Resolved Locally
    • Icon: Medium Medium
    • None
    • 1.1.1
    • Git
    • 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
          after.png
          10 kB
        2. before.png
          before.png
          15 kB

              sstreeting Steve Streeting (Inactive)
              2d59084d1387 Erik Zijp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: