cleanup: read commands are silent by default

This commit is contained in:
Kirill Likhodedov
2016-05-27 20:33:28 +03:00
parent a3457508b2
commit b95bbfea8b
@@ -121,16 +121,12 @@ class GitNewChangesCollector extends GitChangesCollector {
GitSimpleHandler handler = new GitSimpleHandler(myProject, myVcsRoot, GitCommand.STATUS);
final String[] params = {"--porcelain", "-z", "--untracked-files=no"}; // untracked files are stored separately
handler.addParameters(params);
handler.setSilent(true);
handler.setStdoutSuppressed(true);
handler.endOptions();
handler.addRelativePaths(dirtyPaths);
if (handler.isLargeCommandLine()) {
// if there are too much files, just get all changes for the project
handler = new GitSimpleHandler(myProject, myVcsRoot, GitCommand.STATUS);
handler.addParameters(params);
handler.setSilent(true);
handler.setStdoutSuppressed(true);
handler.endOptions();
}
return handler;
@@ -219,7 +215,7 @@ class GitNewChangesCollector extends GitChangesCollector {
case 'U':
if (yStatus == 'U' || yStatus == 'A' || yStatus == 'D' || yStatus == 'T') {
// UU - unmerged, both modified; UD - unmerged, deleted by them; UA - umerged, added by them
// UU - unmerged, both modified; UD - unmerged, deleted by them; UA - unmerged, added by them
reportConflict(filepath, head);
} else {
throwYStatus(output, handler, line, xStatus, yStatus);