in src/main/java/com/github/reviewassistant/reviewassistant/ReviewAssistant.java [274:288]
private BlameResult calculateBlame(RevCommit commit, PatchListEntry file) {
BlameCommand blameCommand = new BlameCommand(repo);
blameCommand.setStartCommit(commit);
blameCommand.setFilePath(file.getNewName());
try {
BlameResult blameResult = blameCommand.call();
blameResult.computeAll();
return blameResult;
} catch (GitAPIException e) {
log.error("Could not call blame command for commit {}", commit.getName(), e);
} catch (IOException e) {
log.error("Could not compute blame result for commit {}", commit.getName(), e);
}
return null;
}