/** * Get source path * * @return path of the file being blamed */ public String getSourcePath() { return outCandidate.sourcePath.getPath(); }
/** * Get result path * * @return path file path being processed */ public String getResultPath() { return resultPath.getPath(); }
/** * Get the path this filter matches. * * @return the path this filter matches. */ public String getPath() { return path.getPath(); }
/** {@inheritDoc} */ @SuppressWarnings("nls") @Override public String toString() { StringBuilder r = new StringBuilder(); r.append("Candidate["); r.append(sourcePath.getPath()); if (sourceCommit != null) r.append(" @ ").append(sourceCommit.abbreviate(6).name()); if (regionList != null) r.append(" regions:").append(regionList); r.append("]"); return r.toString(); }
void loadText(ObjectReader reader) throws IOException { ObjectLoader ldr = LfsFactory.getInstance().applySmudgeFilter(sourceRepository, reader.open(sourceBlob, Constants.OBJ_BLOB), LfsFactory.getAttributesForPath(sourceRepository, sourcePath.getPath(), sourceCommit) .get(Constants.ATTR_DIFF)); sourceText = new RawText(ldr.getCachedBytes(Integer.MAX_VALUE)); }
private DiffEntry findRename(RevCommit parent, RevCommit commit, PathFilter path) throws IOException { if (renameDetector == null) return null; treeWalk.setFilter(TreeFilter.ANY_DIFF); treeWalk.reset(parent.getTree(), commit.getTree()); renameDetector.reset(); renameDetector.addAll(DiffEntry.scan(treeWalk)); for (DiffEntry ent : renameDetector.compute()) { if (isRename(ent) && ent.getNewPath().equals(path.getPath())) return ent; } return null; }
/** * Get result path * * @return path file path being processed */ public String getResultPath() { return resultPath.getPath(); }
/** * Get the path this filter matches. * * @return the path this filter matches. */ public String getPath() { return path.getPath(); }
/** * Get source path * * @return path of the file being blamed */ public String getSourcePath() { return outCandidate.sourcePath.getPath(); }
/** @return the path this filter matches. */ public String getPath() { return path.getPath(); }
/** @return path file path being processed. */ public String getResultPath() { return resultPath.getPath(); }
/** * Get the path this filter matches. * * @return the path this filter matches. */ public String getPath() { return path.getPath(); }
/** @return path of the file being blamed. */ public String getSourcePath() { return outCandidate.sourcePath.getPath(); }
@SuppressWarnings("nls") @Override public String toString() { StringBuilder r = new StringBuilder(); r.append("Candidate["); r.append(sourcePath.getPath()); if (sourceCommit != null) r.append(" @ ").append(sourceCommit.abbreviate(6).name()); if (regionList != null) r.append(" regions:").append(regionList); r.append("]"); return r.toString(); }
/** {@inheritDoc} */ @SuppressWarnings("nls") @Override public String toString() { StringBuilder r = new StringBuilder(); r.append("Candidate["); r.append(sourcePath.getPath()); if (sourceCommit != null) r.append(" @ ").append(sourceCommit.abbreviate(6).name()); if (regionList != null) r.append(" regions:").append(regionList); r.append("]"); return r.toString(); }
void loadText(ObjectReader reader) throws IOException { ObjectLoader ldr = LfsFactory.getInstance().applySmudgeFilter(sourceRepository, reader.open(sourceBlob, Constants.OBJ_BLOB), LfsFactory.getAttributesForPath(sourceRepository, sourcePath.getPath(), sourceCommit) .get(Constants.ATTR_DIFF)); sourceText = new RawText(ldr.getCachedBytes(Integer.MAX_VALUE)); }
private DiffEntry findRename(RevCommit parent, RevCommit commit, PathFilter path) throws IOException { if (renameDetector == null) return null; treeWalk.setFilter(TreeFilter.ANY_DIFF); treeWalk.reset(parent.getTree(), commit.getTree()); renameDetector.reset(); renameDetector.addAll(DiffEntry.scan(treeWalk)); for (DiffEntry ent : renameDetector.compute()) { if (isRename(ent) && ent.getNewPath().equals(path.getPath())) return ent; } return null; }