diff options
author | Alan McGovern <alan.mcgovern@gmail.com> | 2012-02-06 04:03:59 +0400 |
---|---|---|
committer | Alan McGovern <alan.mcgovern@gmail.com> | 2012-02-06 04:03:59 +0400 |
commit | 2194d358bb34c8ca28395e2333ae239be87f08f7 (patch) | |
tree | 957d9e41ef8dc1daddd07760c9c12430c4e7d1de /main/src/addins | |
parent | e8a1e84173b473918ac90d2331c06b83a21e674b (diff) |
[Git] Make the 'Log' command for git track renames by default
We now track renames when calculating the log for a file. It's not
completely supported yet as the diffs for the renamed versions of the
files are empty, but it should be reasonably trivial to fix.
Diffstat (limited to 'main/src/addins')
-rw-r--r-- | main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs index 2b21cd1348..519389d816 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs @@ -163,7 +163,7 @@ namespace MonoDevelop.VersionControl.Git RevWalk walk = new RevWalk (repo); string path = ToGitPath (localFile); if (path != ".") - walk.SetTreeFilter (AndTreeFilter.Create (TreeFilter.ANY_DIFF, PathFilter.Create (path))); + walk.SetTreeFilter (FollowFilter.Create (path)); walk.MarkStart (hc); foreach (RevCommit commit in walk) { |