/// <exception cref="System.IO.IOException"></exception> private DiffEntry FindRename(RevCommit parent, RevCommit commit, PathFilter path) { if (renameDetector == null) { return(null); } treeWalk.Filter = TreeFilter.ANY_DIFF; treeWalk.Reset(parent.Tree, commit.Tree); renameDetector.AddAll(DiffEntry.Scan(treeWalk)); foreach (DiffEntry ent in renameDetector.Compute()) { if (IsRename(ent) && ent.GetNewPath().Equals(path.GetPath())) { return(ent); } } return(null); }
/// <returns>the path this filter matches.</returns> public virtual string GetPath() { return(path.GetPath()); }
/// <returns>path file path being processed.</returns> public virtual string GetResultPath() { return(resultPath.GetPath()); }