anchor.diff:      lo_branches = lcl_git_transport=>branches( iv_url ).
       lt_tags     = lo_branches->get_tags_only( ).
   
  +    IF lines( lt_tags ) = 0.
  +      zcx_abapgit_exception=>raise( `There are no tags for this repository` ).
  +    ENDIF.
  +
       IF iv_select_mode = abap_true.
   
         LOOP AT lt_tags ASSIGNING <ls_tag>.
  
positive.code: 
    METHOD create_tag_popup.
  
      DATA: lv_answer        TYPE c LENGTH 1,
            lt_fields        TYPE TABLE OF sval,
            lv_text_question TYPE string.
  
      FIELD-SYMBOLS: <ls_field> LIKE LINE OF lt_fields.
  
      CLEAR: ev_name, ev_cancel.
  
      lv_text_question = `You create a tag from current commit ` && iv_sha1(7) && ` continue?`.
  
      lv_answer = lcl_popups=>popup_to_confirm( titlebar      = `Create a tag?`
                                                text_question = lv_text_question ).
      IF lv_answer <> '1'.
        ev_cancel = abap_true.
        RETURN.
      ENDIF.
  
      add_field( EXPORTING iv_tabname   = 'TEXTL'
                           iv_fieldname = 'LINE'
  
negative.code:     IF lv_answer = 'A'.
        ev_cancel = abap_true.
      ELSE.
        READ TABLE lt_fields WITH KEY fieldname = 'LINE'
                             ASSIGNING <ls_field>.
        ASSERT sy-subrc = 0.
        ev_name = |{ zif_abapgit_definitions=>gc_tag_prefix }{ <ls_field>-value }|.
      ENDIF.
  