mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] IDEA-118401 Optionally treat status command as write one
This commit is contained in:
@@ -523,3 +523,4 @@ ide.remove.help.button.from.dialogs.description=Removes help button from dialogs
|
||||
|
||||
mysql.native.loading.description=Enables native loader for MySQL data sources
|
||||
mysql.native.loading=false
|
||||
git.status.write=false
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package git4idea.commands;
|
||||
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -62,7 +63,7 @@ public class GitCommand {
|
||||
public static final GitCommand RM = write("rm");
|
||||
public static final GitCommand SHOW = read("show");
|
||||
public static final GitCommand STASH = write("stash");
|
||||
public static final GitCommand STATUS = read("status");
|
||||
public static final GitCommand STATUS = Registry.is("git.status.write") ? write("status") : read("status");
|
||||
public static final GitCommand TAG = read("tag");
|
||||
public static final GitCommand UPDATE_INDEX = write("update-index");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user