Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Solve #1256, fix unnecessary sync actions caused by dirty cache (#1401)
Browse files Browse the repository at this point in the history
Fix unnecessary sync actions caused by dirty cache. Currently, the number of sync action is equal to the number of file diffs.  Thanks to @duzhen1996 .
  • Loading branch information
qiyuangong authored Nov 14, 2017
1 parent 5bc5e83 commit 4c04b54
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,11 @@ public int getValue() {
public String toString() {
return String.format("FileDiffState{value=%s} %s", value, super.toString());
}

public static boolean isTerminalState(FileDiffState state) {
return state.equals(APPLIED)
|| state.equals(MERGED)
|| state.equals(DELETED)
|| state.equals(FAILED);
}
}
Loading

0 comments on commit 4c04b54

Please sign in to comment.