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]
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 ]
All commits with that message (in current branch)