[PATCH 09/10] Add support for unsetting config vars.
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
stgit/config.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/stgit/config.py b/stgit/config.py
index b016fbd..79cd12f 100644
--- a/stgit/config.py
+++ b/stgit/config.py
@@ -103,6 +103,9 @@ class GitConfig:
def set(self, name, value):
self.__run('git-repo-config', [name, value])
+ def unset(self, name):
+ self.__run('git-repo-config --unset', [name])
+
def sections_matching(self, regexp):
"""Takes a regexp with a single group, matches it against all
config variables, and returns a list whose members are the