def BranchExists(branch):
    'Return True if specified branch exists.'
    (code, _) = RunGitWithCode(['rev-parse', '--verify', branch], suppress_stderr=True)
    return (not code)
Return True if specified branch exists.
def BranchExists(branch):
    
    (code, _) = RunGitWithCode(['rev-parse', '--verify', branch], suppress_stderr=True)
    return (not code)