def METHOD_NAME(window, view, text, commit, from_log_graph):
    # type: (sublime.Window, sublime.View, str, str, bool) -> None
    with restore_viewport_position(view, commit):
        replace_view_content(view, text)
    intra_line_colorizer.annotate_intra_line_differences(view)
    # In case we reuse a hidden panel, show the panel *after* updating
    # the content to reduce visual flicker.  This is only ever useful
    # if `show_commit_info` is used to enhance a quick panel.  For the
    # graph view `_draw` effectively runs as a by-product of calling
    # `show_panel`, thus `ensure_panel_is_visible` is not needed in
    # that case.
    if not from_log_graph:
        ensure_panel_is_visible(window)