anchor.diff:          iv_val = |Invalid email address| ).
       ENDIF.
   
  +    lv_new_branch_name = io_form_data->get( c_id-new_branch_name ).
  +    IF lv_new_branch_name IS NOT INITIAL.
  +      " check if branch already exists
  +      lt_branches = zcl_abapgit_git_transport=>branches( mo_repo->get_url( ) )->get_branches_only( ).
  +      READ TABLE lt_branches TRANSPORTING NO FIELDS WITH TABLE KEY name_key
  +        COMPONENTS name = branch_name_to_internal( lv_new_branch_name ).
  +      IF sy-subrc = 0.
  +        ro_validation_log->set(
  +          iv_key = c_id-new_branch_name
  +          iv_val = |Branch already exists| ).
  +      ENDIF.
  +    ENDIF.
  +
     ENDMETHOD.
   
   
     METHOD zif_abapgit_gui_event_handler~on_event.
  +    DATA lv_new_branch_name   TYPE string.
   
       mo_form_data = mo_form_util->normalize( ii_event->form_data( ) ).
   
  
positive.code:             IN ms_commit-body
              WITH zif_abapgit_definitions=>c_newline.
  
            zcl_abapgit_services_git=>commit(
              is_commit = ms_commit
              io_repo   = mo_repo
              io_stage  = mo_stage ).
  
            MESSAGE 'Commit was successful' TYPE 'S'.
  
  
negative.code:         author          TYPE string VALUE 'author',
          author_name     TYPE string VALUE 'author_name',
          author_email    TYPE string VALUE 'author_email',
          new_branch_name TYPE string VALUE 'new_branch_name',
        END OF c_id.
  
      CONSTANTS:
  