From: Ben Keene <seraphire@xxxxxxxxx> Add a new method gitConfigSet(). This method will set a value in the git configuration cache list. Signed-off-by: Ben Keene <seraphire@xxxxxxxxx> --- 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