anchor.diff:  
     PUBLIC SECTION.
       TYPES: BEGIN OF ty_node,
  -             chmod TYPE string,
  +             chmod TYPE ty_chmod,
                name  TYPE string,
                sha1  TYPE ty_sha1,
              END OF ty_node.
  
positive.code: 
      LOOP AT lt_nodes ASSIGNING <ls_node>.
        CASE <ls_node>-chmod.
          WHEN gc_chmod-file.
            APPEND INITIAL LINE TO rt_expanded ASSIGNING <ls_exp>.
            <ls_exp>-path = iv_base.
            <ls_exp>-name = <ls_node>-name.
            <ls_exp>-sha1 = <ls_node>-sha1.
          WHEN gc_chmod-dir.
            lt_expanded = walk_tree(
              it_objects = it_objects
  
negative.code: 
  
      APPEND INITIAL LINE TO mt_expanded ASSIGNING <ls_expanded>.
      <ls_expanded>-path  = iv_path.
      <ls_expanded>-name  = iv_name.
      <ls_expanded>-sha1  = 'a'.
      <ls_expanded>-chmod = gc_chmod-file.
  
    ENDMETHOD.
  
  