Review Solution Changes Dialog does not show any changes.

Today I found out that Review Solution Changes shows that there are no changes, but there are. The issue was that the variable filepath is the path to the solution file but GetDirectoryVersionInfo method of Repository expects directory path.
For me this is a dirty fix because I think that GetDirectoryVersionInfo should work with .sln and .csproj files and to check only for modified files that are included in the solution projects.