Ignoring whitespace could be smarter

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 2.3.2
    • Component/s: None
    • None
    • Severity 3 - Minor

      A typo like "cuberoot" for "cube root" should not be ignored.

      A space was introduced in a file, replacing the one word "cuberoot" by two
      words "cube root". With "Ignore whitespace" set, the change was not shown
      in SourceTree. It was, of course, visible when "Show whitespace" was
      selected.

      It looks to me as though SourceTree is using the git diff option -w:

      -w, --ignore-all-space
      Ignore whitespace when comparing lines. This ignores differences
      even if one
      line has whitespace where the other line has none.

      rather than -b:

      -b, --ignore-space-change
      Ignore changes in amount of whitespace. This ignores whitespace
      at line end,
      and considers all other sequences of one or more whitespace
      characters to be
      equivalent.

       

              Assignee:
              Pratap Guvvala
              Reporter:
              Renato Rudnicki (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: