[PATCH v5 07/15] git-p4: add new support function gitConfigSet()
- From
Ben Keene via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Dec 7, 2019, 17:47 UTC
- Message-ID
- <bc7009541b3f03c3065a7be2b569cd4bf91f7c05.1575740863.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.463.v5.git.1575740863.gitgitgadget@gmail.com>
From: Ben Keene <seraphire@gmail.com>
Add a new method gitConfigSet(). This method will set a value in the git configuration cache list.
Signed-off-by: Ben Keene <seraphire@gmail.com> --- git-p4.py | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/git-p4.py b/git-p4.py index e7c24817ad..e020958083 100755 --- a/git-p4.py +++ b/git-p4.py @@ -860,6 +860,11 @@ def gitConfigList(key): _gitConfig[key] = [] return _gitConfig[key] +def gitConfigSet(key, value): + """ Set the git configuration key 'key' to 'value' for this session + """ + _gitConfig[key] = value + def p4BranchesInGit(branchesAreInRemotes=True): """Find all the branches whose names start with "p4/", looking in remotes or heads as specified by the argument. Return
-- gitgitgadget