Bad Diff Preview on .jsx File (attached)

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 1.6.5
    • Component/s: Git
    • None
    • Environment:

      Standalone, JDK 1.8.0, Win8.1

    • Severity 3 - Minor

      Steps to Reproduce:
      1. Save the attached 'test.jsx' file
      2. Add the file to a git repo
      3. Change the file
      4. Select the file in 'Uncommitted Changes'
      4. Observe the build-in diff display

      Results:
      The previous file and the new file are stacked on top of each other instead of actually diffed. The original is first, so long files look like no changes have happened. The diff incorrectly says there's a new line at the beginning AND a removed line at the beginning.

      (See attached screenshot.)

      Expected Results:
      The diff works as usual.

      NOTE: This error occurs on both Mac and PC versions of SourceTree. Also, other .jsx files work fine, so I'm not sure why the attached file is having issues. This might be a BOM problem. Also, checking in the file includes the appropriate changes, so this is a diff preview problem only.

        1. test.jsx
          0.0 kB
        2. bad diff.png
          bad diff.png
          82 kB

            Assignee:
            Unassigned
            Reporter:
            bjennings76
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: