anchor.diff:        ENDLOOP.
       ENDLOOP.
   
  +* find files only existing remotely, including non abapGit related
  +    LOOP AT it_files ASSIGNING <ls_file>.
  +      READ TABLE rt_results WITH KEY filename = <ls_file>-filename TRANSPORTING NO FIELDS.
  +      IF sy-subrc <> 0.
  +        CLEAR ls_result.
  +        ls_result-match    = abap_true.
  +        ls_result-filename = <ls_file>-filename.
  +        APPEND ls_result TO rt_results.
  +      ENDIF.
  +    ENDLOOP.
  +
  +* find objects only existing locally
  +    IF NOT iv_package IS INITIAL.
  +      SELECT * FROM tadir INTO TABLE lt_tadir
  +        WHERE devclass = iv_package.                        "#EC *
  +      LOOP AT lt_tadir ASSIGNING <ls_tadir>.
  +        READ TABLE rt_results
  +          WITH KEY obj_type = <ls_tadir>-object obj_name = <ls_tadir>-obj_name
  +          TRANSPORTING NO FIELDS.
  +        IF sy-subrc <> 0.
  +          CLEAR ls_result.
  +          ls_result-match    = abap_true.
  +          ls_result-obj_type = <ls_tadir>-object.
  +          ls_result-obj_name = <ls_tadir>-obj_name.
  +          APPEND ls_result TO rt_results.
  +        ENDIF.
  +      ENDLOOP.
  +    ENDIF.
  +
       SORT rt_results BY obj_type ASCENDING obj_name ASCENDING filename ASCENDING.
       DELETE ADJACENT DUPLICATES FROM rt_results
         COMPARING obj_type obj_name filename.
  
positive.code: * bitbucket require agent prefix = "git/"
      ei_client->request->set_header_field(
          name  = 'user-agent'
          value = 'git/abapGit ' && gc_abap_version ).
      lv_uri = lcl_url=>path_name( is_repo-url ) &&
               '.git/info/refs?service=git-' &&
               iv_service &&
  
negative.code:         RETURN.
        WHEN 302.
          _raise 'HTTP redirect, check URL'.
        WHEN 401.
          _raise 'HTTP 401, unauthorized'.
        WHEN 403.
          _raise 'HTTP 403, forbidden'.
        WHEN 404.
          _raise 'HTTP 404, not found'.
        WHEN 415.
          _raise 'HTTP 415, unsupported media type'.
        WHEN OTHERS.
          _raise 'HTTP error code'.
      ENDCASE.
  