anchor.diff:        RAISING
           zcx_abapgit_exception .
       METHODS check_for_restart .
  +    METHODS check_write_protect
  +      RAISING
  +        zcx_abapgit_exception .
  +    METHODS check_language
  +      RAISING
  +        zcx_abapgit_exception .
   ENDCLASS.
   
   
  
positive.code:     METHODS reset_remote .
    PRIVATE SECTION.
  
      DATA mi_listener TYPE REF TO zif_abapgit_repo_listener.
      DATA mo_apack_reader TYPE REF TO zcl_abapgit_apack_reader.
  
      METHODS get_local_checksums
        RETURNING
  
negative.code:   ENDMETHOD.
  
  
    METHOD check_language.
  
      DATA lv_master_language TYPE spras.
  
      " assumes find_remote_dot_abapgit has been called before
      lv_master_language = get_dot_abapgit( )->get_master_language( ).
  
      IF lv_master_language <> sy-langu.
        zcx_abapgit_exception=>raise( |Current login language |
                                   && |'{ zcl_abapgit_convert=>conversion_exit_isola_output( sy-langu ) }'|
                                   && | does not match master language |
                                   && |'{ zcl_abapgit_convert=>conversion_exit_isola_output( lv_master_language ) }'.|
                                   && | Run 'Advanced' > 'Open in master language'| ).
      ENDIF.
  
    ENDMETHOD.
  
  
    METHOD check_write_protect.
  
      IF get_local_settings( )-write_protected = abap_true.
        zcx_abapgit_exception=>raise( 'Cannot deserialize. Local code is write-protected by repo config' ).
      ENDIF.
  
    ENDMETHOD.
  
  
    METHOD constructor.
  
      ASSERT NOT is_data-key IS INITIAL.
  