def GetBranch(logLine):
    m = branchRe.match(logLine)
    if m:
        br = m.group(1)
        hash = m.group(2)
        isCurrent = (m.group(3) is not None)
        return {'name': br, 'commit': hash, 'is_current': isCurrent}
    return None
def GetBranch(logLine):
    m = branchRe.match(logLine)
    if m:
        br = m.group(1)
        hash = m.group(2)
        isCurrent = (m.group(3) is not None)
        return {'name': br, 'commit': hash, 'is_current': isCurrent}
    return None