Using xcode, how can I diff between a working copy of a file and the latest commit in the respository?

version-control, xcode

Solution

Here are screenshots.

Click the Version Editor button in the top-right (highlighted box):

Then, click the revision to compare with (footer highlighted box):

Also, you can navigate through each change using these buttons: `<` and `>`

Finally, you can undo a single change with "Discard Change" like so:

Problem

Using xcode I would like to see a diff between a working copy of a file and the latest commit in the respository. I know that if I commit I can get the comparison. And I know I do it from the command line using 'git diff'. But is there a way to do it from the xcode GUI? I keep thinking there must be a way to do this, but can't find it.

Original source