summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/IStoredSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/gitblit/IStoredSettings.java')
-rw-r--r--src/main/java/com/gitblit/IStoredSettings.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/IStoredSettings.java b/src/main/java/com/gitblit/IStoredSettings.java
index 33c36ac5..01c478f8 100644
--- a/src/main/java/com/gitblit/IStoredSettings.java
+++ b/src/main/java/com/gitblit/IStoredSettings.java
@@ -333,6 +333,16 @@ public abstract class IStoredSettings {
}
/**
+ * Override the specified key with the specified value.
+ *
+ * @param key
+ * @param value
+ */
+ public void overrideSetting(String key, boolean value) {
+ overrides.put(key, "" + value);
+ }
+
+ /**
* Updates the values for the specified keys and persists the entire
* configuration file.
*