anchor.diff:  
     METHOD source_apack_replacement.
   
  -    DATA: lv_clsname TYPE seoclsname.
  -    FIELD-SYMBOLS: <lv_source> LIKE LINE OF ct_source.
  -
  -    lv_clsname = ms_item-obj_name.
  -    SELECT COUNT(*)
  +    DATA lv_clsname TYPE seoclsname.
  +
  +    " Check if abapGit version of APACK manifest is used
  +    SELECT SINGLE clsname INTO lv_clsname
         FROM seometarel
  -      WHERE clsname    = lv_clsname
  +      WHERE clsname    = ms_item-obj_name
           AND refclsname = 'ZIF_APACK_MANIFEST'
           AND version    = '1'.
       IF sy-subrc <> 0.
         RETURN.
       ENDIF.
   
  -    LOOP AT ct_source ASSIGNING <lv_source>.
  -
  -      FIND FIRST OCCURRENCE OF REGEX '^\s*INTERFACES(:| )\s*zif_apack_manifest\s*.' IN <lv_source>.
  -      IF sy-subrc = 0.
  -        REPLACE FIRST OCCURRENCE OF 'zif_apack_manifest' IN <lv_source> WITH 'if_apack_manifest' IGNORING CASE.
  -
  -        REPLACE ALL OCCURRENCES OF 'zif_apack_manifest~descriptor' IN TABLE ct_source
  -                              WITH 'if_apack_manifest~descriptor' IGNORING CASE.
  -
  -        EXIT.
  -      ENDIF.
  -
  -      FIND FIRST OCCURRENCE OF REGEX '^\s*PROTECTED\s*SECTION\s*.' IN <lv_source>.
  -      IF sy-subrc = 0.
  -        EXIT.
  -      ENDIF.
  -
  -    ENDLOOP.
  +    " If yes, replace with SAP-version
  +    interface_replacement(
  +      EXPORTING
  +        iv_from_interface = 'zif_apack_manifest'
  +        iv_to_interface   = 'if_apack_manifest'
  +      CHANGING
  +        ct_source         = ct_source ).
   
     ENDMETHOD.
   
  
positive.code: 
    METHOD repo_apack_replacement.
  
      FIELD-SYMBOLS: <lv_source> LIKE LINE OF ct_source.
  
      LOOP AT ct_source ASSIGNING <lv_source>.
  
        FIND FIRST OCCURRENCE OF REGEX '^\s*INTERFACES(:| )\s*if_apack_manifest\s*.' IN <lv_source>.
        IF sy-subrc = 0.
          REPLACE FIRST OCCURRENCE OF 'if_apack_manifest' IN <lv_source> WITH 'zif_apack_manifest' IGNORING CASE.
  
          REPLACE ALL OCCURRENCES OF 'if_apack_manifest~descriptor' IN TABLE ct_source
                                WITH 'zif_apack_manifest~descriptor' IGNORING CASE.
  
          EXIT.
        ENDIF.
  
        FIND FIRST OCCURRENCE OF REGEX '^\s*PROTECTED\s*SECTION\s*.' IN <lv_source>.
        IF sy-subrc = 0.
          EXIT.
        ENDIF.
  
      ENDLOOP.
  
    ENDMETHOD.
  
  
negative.code:         IMPORTING ii_xml TYPE REF TO zif_abapgit_xml_input
          RAISING   zcx_abapgit_exception,
        deserialize_sotr
          IMPORTING ii_ml      TYPE REF TO zif_abapgit_xml_input
                    iv_package TYPE devclass
          RAISING   zcx_abapgit_exception,
        serialize_xml
  