Skip to content

Commit

Permalink
Show diff for deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiromu Hota committed Nov 1, 2017
1 parent 67c7f81 commit 3a79802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/pentaho/di/git/spoon/model/UIGit.java
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ public String diff( String oldCommitId, String newCommitId, String file ) {
} else {
formatter.format(
diffs.stream()
.filter( diff -> diff.getNewPath().equals( file ) )
.filter( diff -> diff.getChangeType() == ChangeType.DELETE ? diff.getOldPath().equals( file ) : diff.getNewPath().equals( file ) )
.collect( Collectors.toList() ) );
}
formatter.close();
Expand Down

0 comments on commit 3a79802

Please sign in to comment.