mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git: don't detect renames when calculating for local changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package git4idea;
|
||||
|
||||
import com.intellij.dvcs.DvcsUtil;
|
||||
@@ -809,6 +809,7 @@ public class GitUtil {
|
||||
public static boolean hasLocalChanges(boolean staged, Project project, VirtualFile root) throws VcsException {
|
||||
GitLineHandler diff = new GitLineHandler(project, root, GitCommand.DIFF);
|
||||
diff.addParameters("--name-only");
|
||||
diff.addParameters("--no-renames");
|
||||
if (staged) {
|
||||
diff.addParameters("--cached");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user