def commits_with_message ( message ) : output = log ( "--grep '%s'" % message , oneline = True , quiet = True ) lines = output . splitlines ( ) return [ l . split ( ' ' , 1 ) [ 0 ] for l in lines ]
get commits by branch python
All commits with that message ( in current branch )
def commits_with_message(message):
    """All commits with that message (in current branch)"""
    output = log("--grep '%s'" % message, oneline=True, quiet=True)
    lines = output.splitlines()
    return [l.split(' ', 1)[0] for l in lines]