anchor.diff:  
     METHOD zif_abapgit_object~serialize.
   
  -    DATA: ls_msg    TYPE hier_mess,
  -          ls_head   TYPE ttree,
  -          lt_titles TYPE TABLE OF ttreet,
  -          lt_nodes  TYPE TABLE OF hier_iface,
  -          lt_texts  TYPE TABLE OF hier_texts,
  -          lt_refs   TYPE TABLE OF hier_ref.
  +    DATA: ls_msg           TYPE hier_mess,
  +          ls_head          TYPE ttree,
  +          lt_titles        TYPE TABLE OF ttreet,
  +          lt_nodes         TYPE TABLE OF hier_iface,
  +          lt_texts         TYPE TABLE OF hier_texts,
  +          lt_refs          TYPE TABLE OF hier_ref,
  +          lv_language      TYPE spras,
  +          lv_all_languages TYPE abap_bool.
   
   
       CALL FUNCTION 'STREE_STRUCTURE_READ'
  
positive.code: 
      clear_fields( CHANGING cs_head  = ls_head
                             ct_nodes = lt_nodes ).
  
      io_xml->add( iv_name = 'TREE_HEAD'
                   ig_data = ls_head ).
  
negative.code:       TABLES
          description      = lt_titles.
  
      lv_all_languages = abap_false.
  
      IF io_xml->i18n_params( )-serialize_master_lang_only = abap_false.
        lv_all_languages = abap_true.
      ELSE.
        lv_language = mv_language.
        DELETE lt_titles WHERE spras <> lv_language.
      ENDIF.
  
      CALL FUNCTION 'STREE_HIERARCHY_READ'
        EXPORTING
          structure_id       = mv_tree_id
          read_also_texts    = 'X'
          all_languages      = lv_all_languages
          language           = lv_language
        IMPORTING
          message            = ls_msg
        TABLES
  