Search code examples
xcodegitgit-diffxcode13

Weird git diff log (exactly whitespace) in Xcode


Xcode13, macOS Monterey 12.0 (beta)

Hi, I have a weird whitespace error in the git diff log.
Happened in Xcode13 (or Monterey Beta), And never before.

Please see below two pictures.

  • first one: in My IDE
  • another one: in pull request

Has anyone come across this issue?
Or is there a way to get it to come out like before?

ide

pr


Solution

  • Check first if this is because of a contributor using a different tab size in their code.

    If merging such pull request is not practical on GitHub itself, you might consider: