Return the contents of a file at a given tag

def git_show_file(path, ref):
    """
    Return the contents of a file at a given tag
    """
    root = get_root()
    command = 'git show {}:{}'.format(ref, path)

    with chdir(root):
        return run_command(command, capture=True).stdout