Search code examples
smartgit

How can I compare a current version of file to an older version in SmartGit


I was trying to find where a bug was introduced into my code, so I wanted to compare my current file to the last version of the file I knew to be good.

I found out I could see a list of commits that contained that file by viewing the file's log, but how can I see all those changes combined up to a certain point?

In other words, how can I compare a current version of a file to a single specific version of that file a couple commits ago?


Solution

  • Select both commits in the Commits graph, this will display all modifications in the Files view. Now select the file which is interesting for you there (SmartGit should have it preselected) and you will see the diff in the Changes view.