def git_set_branch_value(key, value):
    branch = GetCurrentBranch()
    if (not branch):
        return
    cmd = ['config']
    if isinstance(value, int):
        cmd.append('--int')
    git_key = ('branch.%s.%s' % (branch, key))
    RunGit((cmd + [git_key, str(value)]))
def git_set_branch_value(key, value):
    branch = GetCurrentBranch()
    if (not branch):
        return
    cmd = ['config']
    if isinstance(value, int):
        cmd.append('--int')
    git_key = ('branch.%s.%s' % (branch, key))
    RunGit((cmd + [git_key, str(value)]))