anchor.diff:    ENDMETHOD.
   
   
  +  METHOD set_patch_by_old_diff.
  +
  +    FIELD-SYMBOLS: <ls_diff> TYPE zif_abapgit_definitions=>ty_diff.
  +
  +    LOOP AT mt_diff ASSIGNING <ls_diff>
  +                    WHERE old     = is_diff_old-old
  +                    AND   new     = is_diff_old-new
  +                    AND   new_num = is_diff_old-new_num
  +                    AND   old_num = is_diff_old-old_num.
  +
  +      <ls_diff>-patch_flag = iv_patch_flag.
  +      EXIT.
  +
  +    ENDLOOP.
  +
  +  ENDMETHOD.
  +
  +
     METHOD set_patch_new.
   
       DATA: lv_new_num TYPE i.
  
positive.code:     SPLIT lv_old AT zif_abapgit_definitions=>c_newline INTO TABLE et_old.
  
    ENDMETHOD.
  
    METHOD create_regex_set.
  
      DATA: lo_regex TYPE REF TO cl_abap_regex,
            lt_regex TYPE zif_abapgit_definitions=>ty_string_tt,
            lv_regex LIKE LINE OF lt_regex.
  
      APPEND '^\s*(CLASS|FORM|MODULE|REPORT|METHOD)\s' TO lt_regex.
      APPEND '^\s*START-OF-' TO lt_regex.
      APPEND '^\s*INITIALIZATION(\s|\.)' TO lt_regex.
  
      LOOP AT lt_regex INTO lv_regex.
        CREATE OBJECT lo_regex
          EXPORTING
            pattern     = lv_regex
            ignore_case = abap_true.
        APPEND lo_regex TO rt_regex_set.
      ENDLOOP.
  
    ENDMETHOD.
  
  
    METHOD is_line_patched.
  
      FIELD-SYMBOLS: <ls_diff> TYPE zif_abapgit_definitions=>ty_diff.
  
      READ TABLE mt_diff INDEX iv_index
                         ASSIGNING <ls_diff>.
      IF sy-subrc = 0.
        rv_patched = <ls_diff>-patch_flag.
      ELSE.
        zcx_abapgit_exception=>raise( |Diff line not found { iv_index }| ).
      ENDIF.
  
    ENDMETHOD.
  
  
    METHOD set_patch_by_old_diff.
  
      FIELD-SYMBOLS: <ls_diff> TYPE zif_abapgit_definitions=>ty_diff.
  
      LOOP AT mt_diff ASSIGNING <ls_diff>
                      WHERE old     = is_diff_old-old
                      AND   new     = is_diff_old-new
                      AND   new_num = is_diff_old-new_num
                      AND   old_num = is_diff_old-old_num.
  
        <ls_diff>-patch_flag = iv_patch_flag.
        EXIT.
  
      ENDLOOP.
  
    ENDMETHOD.
  
  ENDCLASS.
  
negative.code: 
    METHOD get_beacons.
      rt_beacons = mt_beacons.
    ENDMETHOD.
  
  
    METHOD is_line_patched.
  
      FIELD-SYMBOLS: <ls_diff> TYPE zif_abapgit_definitions=>ty_diff.
  
      READ TABLE mt_diff INDEX iv_index
                         ASSIGNING <ls_diff>.
      IF sy-subrc = 0.
        rv_patched = <ls_diff>-patch_flag.
      ELSE.
        zcx_abapgit_exception=>raise( |Diff line not found { iv_index }| ).
      ENDIF.
  
    ENDMETHOD.
  
  
  