def branches_containing(commit):
    """Return a list of branches conatining that commit"""
    lines = run('branch --contains %s' % commit).splitlines()
    return [l.lstrip('* ') for l in lines]
def branches_containing ( commit ) : lines = run ( 'branch --contains %s' % commit ) . splitlines ( ) return [ l . lstrip ( '* ' ) for l in lines ]
Return a list of branches conatining that commit