anchor.diff:      ls_hotkey_action-hotkey       = |d|.
       INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
   
  -  ENDMETHOD.
  +    ls_hotkey_action-description  = |Refresh|.
  +    ls_hotkey_action-action       = c_action-stage_refresh.
  +    ls_hotkey_action-hotkey       = |r|.
  +    INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
  +
  +  ENDMETHOD.
  +
  +  METHOD init_files.
  +    ms_files = zcl_abapgit_factory=>get_stage_logic( )->get( mo_repo ).
  +    IF lines( ms_files-local ) = 0 AND lines( ms_files-remote ) = 0.
  +      zcx_abapgit_exception=>raise( 'There are no changes that could be staged' ).
  +    ENDIF.
  +  ENDMETHOD.
  +
   ENDCLASS.
  
positive.code:     INTERFACES zif_abapgit_gui_hotkeys.
  
      CONSTANTS: BEGIN OF c_action,
                   stage_all    TYPE string VALUE 'stage_all',
                   stage_commit TYPE string VALUE 'stage_commit',
                   stage_filter TYPE string VALUE 'stage_filter',
                 END OF c_action.
  
      METHODS:
  
negative.code:         rs_handled-page  = get_page_patch( lo_stage ).
          rs_handled-state = zcl_abapgit_gui=>c_event_state-new_page.
  
        WHEN c_action-stage_refresh.
          mo_repo->refresh( abap_true ).
          init_files( ).
          rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
  
        WHEN OTHERS.
          rs_handled = super->zif_abapgit_gui_event_handler~on_event( ii_event ).
      ENDCASE.
  