anchor.diff:  
       METHODS:
         render_head_menu
  +        IMPORTING iv_lstate      TYPE char1
  +                  iv_rstate      TYPE char1
           RETURNING VALUE(ro_html) TYPE REF TO lcl_html_helper
           RAISING   lcx_exception,
         render_grid_menu
  
positive.code:     DATA: lt_repo_items TYPE lcl_repo_content_browser=>tt_repo_items,
            lo_browser    TYPE REF TO lcl_repo_content_browser,
            lx_error      TYPE REF TO lcx_exception,
            lo_log        TYPE REF TO lcl_log.
  
      FIELD-SYMBOLS <ls_item> LIKE LINE OF lt_repo_items.
  
negative.code:     " Build main toolbar ==============================
      IF mo_repo->is_offline( ) = abap_false. " Online ?
        TRY.
            IF iv_rstate IS NOT INITIAL. " Something new at remote
              lo_toolbar->add( iv_txt = 'Pull'
                               iv_act = |{ gc_action-git_pull }?{ lv_key }|
                               iv_opt = lv_pull_opt ).
            ENDIF.
            IF iv_lstate IS NOT INITIAL. " Something new at local
              lo_toolbar->add( iv_txt = 'Stage'
                               iv_act = |{ gc_action-go_stage }?{ lv_key }|
                               iv_opt = gc_html_opt-emphas ).
            ENDIF.
            IF iv_rstate IS NOT INITIAL OR iv_lstate IS NOT INITIAL. " Any changes
              lo_toolbar->add( iv_txt = 'Show diff'
                               iv_act = |{ gc_action-go_diff }?key={ lv_key }|
                               iv_opt = gc_html_opt-emphas ).
            ENDIF.
          CATCH lcx_exception ##NO_HANDLER.
  