parameters: (path='.', branch='HEAD', ref='origin/master')
return_statement: return []
docstring: Returns an ordered list of hashes for commits that have been applied since
        branching from ref.
docstring_summary: Returns an ordered list of hashes for commits that have been applied since
        branching from ref.
docstring_tokens: Returns an ordered list of hashes for commits that have been applied since branching from ref .
function: def get_branch_hashes(path='.', branch='HEAD', ref='origin/master'):
    """ Returns an ordered list of hashes for commits that have been applied since
        branching from ref. """
    cmd = "%s cherry %s %s" % (git_exe, ref, branch)
    result = exec_cmd(cmd, path)
    if result['out'] != '':
      hashes = result['out']
      if sys.platform == 'win32':
        # Convert to Unix line endings.
        hashes = hashes.replace('\r\n', '\n')
      # Remove the "+ " or "- " prefix.
      return [line[2:] for line in hashes.strip().split('\n')]
    return []
function_tokens: def get_branch_hashes ( path = '.' , branch = 'HEAD' , ref = 'origin/master' ) : cmd = "%s cherry %s %s" % ( git_exe , ref , branch ) result = exec_cmd ( cmd , path ) if result [ 'out' ] != '' : hashes = result [ 'out' ] if sys . platform == 'win32' : # Convert to Unix line endings. hashes = hashes . replace ( '\r\n' , '\n' ) # Remove the "+ " or "- " prefix. return [ line [ 2 : ] for line in hashes . strip ( ) . split ( '\n' ) ] return [ ]