[PATCH 09/10] Add support for unsetting config vars.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Signed-off-by: Yann Dirson <ydirson@xxxxxxxxxx>
---

 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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]