[git] IDEA-118401 Optionally treat status command as write one

This commit is contained in:
Kirill Likhodedov
2015-01-28 17:50:08 +03:00
parent 0ec0ec97e3
commit 9ffac053ff
2 changed files with 3 additions and 1 deletions
@@ -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");