Search in sources :

Example 1 with RenameCallback

use of org.eclipse.jgit.revwalk.RenameCallback in project egit by eclipse.

the class GitHistoryPage method createFollowFilter.

private FollowFilter createFollowFilter(String path, DiffConfig diffConfig) {
    FollowFilter followFilter = FollowFilter.create(path, diffConfig);
    followFilter.setRenameCallback(new RenameCallback() {

        @Override
        public void renamed(DiffEntry entry) {
            renameTracker.getCallback().renamed(entry);
            if (fileViewerInterestingPaths != null) {
                fileViewerInterestingPaths.add(entry.getOldPath());
                fileViewerInterestingPaths.add(entry.getNewPath());
            }
        }
    });
    return followFilter;
}
Also used : FollowFilter(org.eclipse.jgit.revwalk.FollowFilter) RenameCallback(org.eclipse.jgit.revwalk.RenameCallback) DiffEntry(org.eclipse.jgit.diff.DiffEntry)

Aggregations

DiffEntry (org.eclipse.jgit.diff.DiffEntry)1 FollowFilter (org.eclipse.jgit.revwalk.FollowFilter)1 RenameCallback (org.eclipse.jgit.revwalk.RenameCallback)1