Skip to content

Commit

Permalink
Merge pull request #3 from ssiegler/patch-1
Browse files Browse the repository at this point in the history
Compare with common ancestor instead of tip
  • Loading branch information
CK35 committed Feb 6, 2016
2 parents d928b48 + 22053b2 commit cc1b39e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public List<String> loadChangedFiles(String branchName) throws MojoExecutionExce
* @throws IOException If process creation failed.
*/
protected Process gitDiffProcess(String branchName) throws IOException {
return new ProcessBuilder(Arrays.asList("git", "diff", "--name-only", branchName)).start();
return new ProcessBuilder(Arrays.asList("git", "diff", "--name-only", branchName+"...")).start();
}

@Override
Expand Down Expand Up @@ -296,4 +296,4 @@ public boolean isSkipGenerationWhenNoChangesFound() {
public void setSkipGenerationWhenNoChangesFound(boolean skipGenerationWhenNoChangesFound) {
this.skipGenerationWhenNoChangesFound = skipGenerationWhenNoChangesFound;
}
}
}

0 comments on commit cc1b39e

Please sign in to comment.