mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Implementation (#4086)
This commit is contained in:
parent
15dcf41984
commit
69b6c3c38a
|
@ -741,7 +741,7 @@ CLASS zcl_abapgit_gui_chunk_lib IMPLEMENTATION.
|
||||||
lo_repo_online ?= io_repo.
|
lo_repo_online ?= io_repo.
|
||||||
IF iv_show_branch = abap_true.
|
IF iv_show_branch = abap_true.
|
||||||
IF iv_branch IS INITIAL.
|
IF iv_branch IS INITIAL.
|
||||||
ri_html->add( render_branch_span( iv_branch = lo_repo_online->get_branch_name( )
|
ri_html->add( render_branch_span( iv_branch = lo_repo_online->get_selected_branch( )
|
||||||
io_repo = lo_repo_online
|
io_repo = lo_repo_online
|
||||||
iv_interactive = iv_interactive_branch ) ).
|
iv_interactive = iv_interactive_branch ) ).
|
||||||
ELSE.
|
ELSE.
|
||||||
|
@ -780,7 +780,7 @@ CLASS zcl_abapgit_gui_chunk_lib IMPLEMENTATION.
|
||||||
lv_display_url TYPE zif_abapgit_persistence=>ty_repo-url,
|
lv_display_url TYPE zif_abapgit_persistence=>ty_repo-url,
|
||||||
lv_icon_commit TYPE string.
|
lv_icon_commit TYPE string.
|
||||||
|
|
||||||
lv_commit_hash = io_repo_online->get_sha1_remote( ).
|
lv_commit_hash = io_repo_online->get_current_remote( ).
|
||||||
lv_commit_short_hash = lv_commit_hash(7).
|
lv_commit_short_hash = lv_commit_hash(7).
|
||||||
|
|
||||||
lv_icon_commit = ii_html->icon( iv_name = 'code-commit'
|
lv_icon_commit = ii_html->icon( iv_name = 'code-commit'
|
||||||
|
|
|
@ -199,7 +199,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_COMMIT IMPLEMENTATION.
|
||||||
ri_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top(
|
ri_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top(
|
||||||
io_repo = mo_repo
|
io_repo = mo_repo
|
||||||
iv_show_package = abap_false
|
iv_show_package = abap_false
|
||||||
iv_branch = mo_repo->get_branch_name( ) ) ).
|
iv_branch = mo_repo->get_selected_branch( ) ) ).
|
||||||
|
|
||||||
ri_html->add( render_menu( ) ).
|
ri_html->add( render_menu( ) ).
|
||||||
ri_html->add( render_form( ) ).
|
ri_html->add( render_form( ) ).
|
||||||
|
|
|
@ -69,7 +69,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_MERGE IMPLEMENTATION.
|
||||||
|
|
||||||
mo_repo = io_repo.
|
mo_repo = io_repo.
|
||||||
|
|
||||||
io_repo->set_branch_name( |{ zif_abapgit_definitions=>c_git_branch-heads_prefix }{ iv_target }| ).
|
io_repo->select_branch( |{ zif_abapgit_definitions=>c_git_branch-heads_prefix }{ iv_target }| ).
|
||||||
|
|
||||||
CREATE OBJECT mo_merge
|
CREATE OBJECT mo_merge
|
||||||
EXPORTING
|
EXPORTING
|
||||||
|
|
|
@ -444,7 +444,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_MERGE_RES IMPLEMENTATION.
|
||||||
|
|
||||||
IF mv_merge_mode = c_merge_mode-selection.
|
IF mv_merge_mode = c_merge_mode-selection.
|
||||||
ri_html->add( '<form id="target_form" method="post" action="sapevent:apply_target">' ).
|
ri_html->add( '<form id="target_form" method="post" action="sapevent:apply_target">' ).
|
||||||
ri_html->add( '<th>Target - ' && mo_repo->get_branch_name( ) && ' - ' ).
|
ri_html->add( '<th>Target - ' && mo_repo->get_selected_branch( ) && ' - ' ).
|
||||||
ri_html->add_a( iv_act = 'submitFormById(''target_form'');'
|
ri_html->add_a( iv_act = 'submitFormById(''target_form'');'
|
||||||
iv_txt = 'Apply'
|
iv_txt = 'Apply'
|
||||||
iv_typ = zif_abapgit_html=>c_action_type-onclick
|
iv_typ = zif_abapgit_html=>c_action_type-onclick
|
||||||
|
@ -461,7 +461,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_MERGE_RES IMPLEMENTATION.
|
||||||
ri_html->add( '</th> ' ).
|
ri_html->add( '</th> ' ).
|
||||||
ri_html->add( '</form>' ).
|
ri_html->add( '</form>' ).
|
||||||
ELSE.
|
ELSE.
|
||||||
ri_html->add( '<th>Target - ' && mo_repo->get_branch_name( ) && '</th> ' ).
|
ri_html->add( '<th>Target - ' && mo_repo->get_selected_branch( ) && '</th> ' ).
|
||||||
ri_html->add( '<th class="num"></th>' ).
|
ri_html->add( '<th class="num"></th>' ).
|
||||||
ri_html->add( '<th>Source - ' && mo_merge->get_source_branch( ) && '</th> ' ).
|
ri_html->add( '<th>Source - ' && mo_merge->get_source_branch( ) && '</th> ' ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
|
@ -312,7 +312,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_SETT IMPLEMENTATION.
|
||||||
ii_html->add( render_table_row(
|
ii_html->add( render_table_row(
|
||||||
iv_name = 'Current remote'
|
iv_name = 'Current remote'
|
||||||
iv_value = |{ lo_repo_online->get_url( )
|
iv_value = |{ lo_repo_online->get_url( )
|
||||||
} <span class="grey">@{ lo_repo_online->get_branch_name( ) }</span>| ) ).
|
} <span class="grey">@{ lo_repo_online->get_selected_branch( ) }</span>| ) ).
|
||||||
ii_html->add( render_table_row(
|
ii_html->add( render_table_row(
|
||||||
iv_name = 'Switched origin'
|
iv_name = 'Switched origin'
|
||||||
iv_value = |<input name="switched_origin" type="text" size="60" value="{
|
iv_value = |<input name="switched_origin" type="text" size="60" value="{
|
||||||
|
|
|
@ -1163,7 +1163,7 @@ CLASS zcl_abapgit_gui_page_repo_view IMPLEMENTATION.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
lo_repo_online->switch_origin( ls_pull-head_url ).
|
lo_repo_online->switch_origin( ls_pull-head_url ).
|
||||||
lo_repo_online->set_branch_name( |refs/heads/{ ls_pull-head_branch }| ). " TODO refactor
|
lo_repo_online->select_branch( |refs/heads/{ ls_pull-head_branch }| ). " TODO refactor
|
||||||
rv_switched = abap_true.
|
rv_switched = abap_true.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
|
|
|
@ -251,7 +251,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_TAG IMPLEMENTATION.
|
||||||
|
|
||||||
ri_html->add( render_text_input( iv_name = 'sha1'
|
ri_html->add( render_text_input( iv_name = 'sha1'
|
||||||
iv_label = 'SHA1'
|
iv_label = 'SHA1'
|
||||||
iv_value = mo_repo_online->get_sha1_remote( ) ) ).
|
iv_value = mo_repo_online->get_current_remote( ) ) ).
|
||||||
|
|
||||||
ri_html->add( render_text_input( iv_name = 'name'
|
ri_html->add( render_text_input( iv_name = 'name'
|
||||||
iv_label = 'tag name' ) ).
|
iv_label = 'tag name' ) ).
|
||||||
|
|
|
@ -244,7 +244,7 @@ CLASS zcl_abapgit_services_git IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
|
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
|
||||||
lv_source_branch_name = lo_repo->get_branch_name( ).
|
lv_source_branch_name = lo_repo->get_selected_branch( ).
|
||||||
|
|
||||||
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
|
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
|
||||||
li_popups->create_branch_popup(
|
li_popups->create_branch_popup(
|
||||||
|
@ -279,7 +279,7 @@ CLASS zcl_abapgit_services_git IMPLEMENTATION.
|
||||||
|
|
||||||
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
|
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
|
||||||
ls_branch = li_popups->branch_list_popup( iv_url = lo_repo->get_url( )
|
ls_branch = li_popups->branch_list_popup( iv_url = lo_repo->get_url( )
|
||||||
iv_hide_branch = lo_repo->get_branch_name( )
|
iv_hide_branch = lo_repo->get_selected_branch( )
|
||||||
iv_hide_head = abap_true ).
|
iv_hide_head = abap_true ).
|
||||||
IF ls_branch IS INITIAL.
|
IF ls_branch IS INITIAL.
|
||||||
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
|
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
|
||||||
|
@ -465,7 +465,7 @@ CLASS zcl_abapgit_services_git IMPLEMENTATION.
|
||||||
|
|
||||||
ls_branch = zcl_abapgit_ui_factory=>get_popups( )->branch_list_popup(
|
ls_branch = zcl_abapgit_ui_factory=>get_popups( )->branch_list_popup(
|
||||||
iv_url = lo_repo->get_url( )
|
iv_url = lo_repo->get_url( )
|
||||||
iv_default_branch = lo_repo->get_branch_name( )
|
iv_default_branch = lo_repo->get_selected_branch( )
|
||||||
iv_show_new_option = abap_true ).
|
iv_show_new_option = abap_true ).
|
||||||
IF ls_branch IS INITIAL.
|
IF ls_branch IS INITIAL.
|
||||||
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
|
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
|
||||||
|
@ -476,7 +476,7 @@ CLASS zcl_abapgit_services_git IMPLEMENTATION.
|
||||||
RETURN.
|
RETURN.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
lo_repo->set_branch_name( ls_branch-name ).
|
lo_repo->select_branch( ls_branch-name ).
|
||||||
|
|
||||||
COMMIT WORK AND WAIT.
|
COMMIT WORK AND WAIT.
|
||||||
|
|
||||||
|
@ -495,7 +495,7 @@ CLASS zcl_abapgit_services_git IMPLEMENTATION.
|
||||||
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
|
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
lo_repo->set_branch_name( ls_tag-name ).
|
lo_repo->select_branch( ls_tag-name ).
|
||||||
|
|
||||||
COMMIT WORK AND WAIT.
|
COMMIT WORK AND WAIT.
|
||||||
|
|
||||||
|
|
|
@ -434,7 +434,7 @@ CLASS ZCL_ABAPGIT_SERVICES_REPO IMPLEMENTATION.
|
||||||
zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->switch_repo_type( iv_offline = abap_false ).
|
zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->switch_repo_type( iv_offline = abap_false ).
|
||||||
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
|
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
|
||||||
lo_repo->set_url( ls_popup-url ).
|
lo_repo->set_url( ls_popup-url ).
|
||||||
lo_repo->set_branch_name( ls_popup-branch_name ).
|
lo_repo->select_branch( ls_popup-branch_name ).
|
||||||
|
|
||||||
ls_loc = lo_repo->get_local_settings( ). " Just in case ... if switch affects LS state
|
ls_loc = lo_repo->get_local_settings( ). " Just in case ... if switch affects LS state
|
||||||
ls_loc-display_name = ls_popup-display_name.
|
ls_loc-display_name = ls_popup-display_name.
|
||||||
|
@ -466,7 +466,7 @@ CLASS ZCL_ABAPGIT_SERVICES_REPO IMPLEMENTATION.
|
||||||
|
|
||||||
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
|
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
|
||||||
lo_repo->set_url( ls_popup-url ).
|
lo_repo->set_url( ls_popup-url ).
|
||||||
lo_repo->set_branch_name( ls_popup-branch_name ).
|
lo_repo->select_branch( ls_popup-branch_name ).
|
||||||
|
|
||||||
ls_loc-display_name = ls_popup-display_name.
|
ls_loc-display_name = ls_popup-display_name.
|
||||||
lo_repo->set_local_settings( ls_loc ).
|
lo_repo->set_local_settings( ls_loc ).
|
||||||
|
|
|
@ -334,7 +334,7 @@ CLASS ZCL_ABAPGIT_BRANCH_OVERVIEW IMPLEMENTATION.
|
||||||
zcl_abapgit_git_transport=>upload_pack_by_branch(
|
zcl_abapgit_git_transport=>upload_pack_by_branch(
|
||||||
EXPORTING
|
EXPORTING
|
||||||
iv_url = io_repo->get_url( )
|
iv_url = io_repo->get_url( )
|
||||||
iv_branch_name = io_repo->get_branch_name( )
|
iv_branch_name = io_repo->get_selected_branch( )
|
||||||
iv_deepen_level = 0
|
iv_deepen_level = 0
|
||||||
it_branches = lt_branches_and_tags
|
it_branches = lt_branches_and_tags
|
||||||
IMPORTING
|
IMPORTING
|
||||||
|
|
|
@ -253,7 +253,7 @@ CLASS ZCL_ABAPGIT_MERGE IMPLEMENTATION.
|
||||||
|
|
||||||
METHOD constructor.
|
METHOD constructor.
|
||||||
|
|
||||||
IF iv_source_branch = io_repo->get_branch_name( ).
|
IF iv_source_branch = io_repo->get_selected_branch( ).
|
||||||
zcx_abapgit_exception=>raise( 'source = target' ).
|
zcx_abapgit_exception=>raise( 'source = target' ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ CLASS ZCL_ABAPGIT_MERGE IMPLEMENTATION.
|
||||||
zcl_abapgit_git_branch_list=>complete_heads_branch_name( mv_source_branch ) ).
|
zcl_abapgit_git_branch_list=>complete_heads_branch_name( mv_source_branch ) ).
|
||||||
|
|
||||||
ms_merge-target = lo_branch_list->find_by_name(
|
ms_merge-target = lo_branch_list->find_by_name(
|
||||||
zcl_abapgit_git_branch_list=>complete_heads_branch_name( mo_repo->get_branch_name( ) ) ).
|
zcl_abapgit_git_branch_list=>complete_heads_branch_name( mo_repo->get_selected_branch( ) ) ).
|
||||||
|
|
||||||
APPEND ms_merge-source TO lt_upload.
|
APPEND ms_merge-source TO lt_upload.
|
||||||
APPEND ms_merge-target TO lt_upload.
|
APPEND ms_merge-target TO lt_upload.
|
||||||
|
@ -282,7 +282,7 @@ CLASS ZCL_ABAPGIT_MERGE IMPLEMENTATION.
|
||||||
zcl_abapgit_git_transport=>upload_pack_by_branch(
|
zcl_abapgit_git_transport=>upload_pack_by_branch(
|
||||||
EXPORTING
|
EXPORTING
|
||||||
iv_url = ms_merge-repo->get_url( )
|
iv_url = ms_merge-repo->get_url( )
|
||||||
iv_branch_name = ms_merge-repo->get_branch_name( )
|
iv_branch_name = ms_merge-repo->get_selected_branch( )
|
||||||
iv_deepen_level = 0
|
iv_deepen_level = 0
|
||||||
it_branches = lt_upload
|
it_branches = lt_upload
|
||||||
IMPORTING
|
IMPORTING
|
||||||
|
|
|
@ -16,7 +16,7 @@ CLASS zcl_abapgit_repo_online DEFINITION
|
||||||
METHODS get_url
|
METHODS get_url
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rv_url) TYPE zif_abapgit_persistence=>ty_repo-url .
|
VALUE(rv_url) TYPE zif_abapgit_persistence=>ty_repo-url .
|
||||||
METHODS get_branch_name
|
METHODS get_selected_branch
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rv_name) TYPE zif_abapgit_persistence=>ty_repo-branch_name .
|
VALUE(rv_name) TYPE zif_abapgit_persistence=>ty_repo-branch_name .
|
||||||
METHODS set_url
|
METHODS set_url
|
||||||
|
@ -24,22 +24,22 @@ CLASS zcl_abapgit_repo_online DEFINITION
|
||||||
!iv_url TYPE zif_abapgit_persistence=>ty_repo-url
|
!iv_url TYPE zif_abapgit_persistence=>ty_repo-url
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception .
|
||||||
METHODS set_branch_name
|
METHODS select_branch
|
||||||
IMPORTING
|
IMPORTING
|
||||||
!iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name
|
!iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception .
|
||||||
METHODS get_sha1
|
METHODS get_selected_commit
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rv_sha1) TYPE zif_abapgit_definitions=>ty_sha1
|
VALUE(rv_sha1) TYPE zif_abapgit_definitions=>ty_sha1
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception .
|
||||||
METHODS get_sha1_remote
|
METHODS get_current_remote
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rv_sha1) TYPE zif_abapgit_definitions=>ty_sha1
|
VALUE(rv_sha1) TYPE zif_abapgit_definitions=>ty_sha1
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
zcx_abapgit_exception .
|
||||||
METHODS set_sha1
|
METHODS select_commit
|
||||||
IMPORTING
|
IMPORTING
|
||||||
iv_sha1 TYPE zif_abapgit_definitions=>ty_sha1
|
iv_sha1 TYPE zif_abapgit_definitions=>ty_sha1
|
||||||
RAISING
|
RAISING
|
||||||
|
@ -85,7 +85,7 @@ CLASS zcl_abapgit_repo_online DEFINITION
|
||||||
PRIVATE SECTION.
|
PRIVATE SECTION.
|
||||||
|
|
||||||
DATA mt_objects TYPE zif_abapgit_definitions=>ty_objects_tt .
|
DATA mt_objects TYPE zif_abapgit_definitions=>ty_objects_tt .
|
||||||
DATA mv_branch TYPE zif_abapgit_definitions=>ty_sha1 .
|
DATA mv_current_commit TYPE zif_abapgit_definitions=>ty_sha1 .
|
||||||
|
|
||||||
METHODS handle_stage_ignore
|
METHODS handle_stage_ignore
|
||||||
IMPORTING
|
IMPORTING
|
||||||
|
@ -123,16 +123,16 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
||||||
|
|
||||||
ls_pull = zcl_abapgit_git_porcelain=>pull_by_branch(
|
ls_pull = zcl_abapgit_git_porcelain=>pull_by_branch(
|
||||||
iv_url = get_url( )
|
iv_url = get_url( )
|
||||||
iv_branch_name = get_branch_name( ) ).
|
iv_branch_name = get_selected_branch( ) ).
|
||||||
|
|
||||||
set_files_remote( ls_pull-files ).
|
set_files_remote( ls_pull-files ).
|
||||||
set_objects( ls_pull-objects ).
|
set_objects( ls_pull-objects ).
|
||||||
mv_branch = ls_pull-commit.
|
mv_current_commit = ls_pull-commit.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD get_branch_name.
|
METHOD get_selected_branch.
|
||||||
rv_name = ms_data-branch_name.
|
rv_name = ms_data-branch_name.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
@ -204,19 +204,19 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD get_sha1.
|
METHOD get_selected_commit.
|
||||||
rv_sha1 = mv_branch.
|
rv_sha1 = mv_current_commit.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD get_sha1_remote.
|
METHOD get_current_remote.
|
||||||
fetch_remote( ).
|
fetch_remote( ).
|
||||||
rv_sha1 = mv_branch.
|
rv_sha1 = mv_current_commit.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD set_sha1.
|
METHOD select_commit.
|
||||||
mv_branch = iv_sha1.
|
mv_current_commit = iv_sha1.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
|
@ -328,7 +328,7 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
METHOD set_branch_name.
|
METHOD select_branch.
|
||||||
|
|
||||||
reset_remote( ).
|
reset_remote( ).
|
||||||
set( iv_branch_name = iv_branch_name ).
|
set( iv_branch_name = iv_branch_name ).
|
||||||
|
@ -372,7 +372,7 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
||||||
set_url( substring(
|
set_url( substring(
|
||||||
val = ms_data-switched_origin
|
val = ms_data-switched_origin
|
||||||
len = lv_offs ) ).
|
len = lv_offs ) ).
|
||||||
set_branch_name( substring(
|
select_branch( substring(
|
||||||
val = ms_data-switched_origin
|
val = ms_data-switched_origin
|
||||||
off = lv_offs + 1 ) ).
|
off = lv_offs + 1 ) ).
|
||||||
set( iv_switched_origin = '' ).
|
set( iv_switched_origin = '' ).
|
||||||
|
@ -394,7 +394,7 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
||||||
ASSERT iv_name CP zif_abapgit_definitions=>c_git_branch-heads.
|
ASSERT iv_name CP zif_abapgit_definitions=>c_git_branch-heads.
|
||||||
|
|
||||||
IF iv_from IS INITIAL.
|
IF iv_from IS INITIAL.
|
||||||
lv_sha1 = get_sha1_remote( ).
|
lv_sha1 = get_current_remote( ).
|
||||||
ELSE.
|
ELSE.
|
||||||
lv_sha1 = iv_from.
|
lv_sha1 = iv_from.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
@ -405,7 +405,7 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
||||||
iv_from = lv_sha1 ).
|
iv_from = lv_sha1 ).
|
||||||
|
|
||||||
" automatically switch to new branch
|
" automatically switch to new branch
|
||||||
set_branch_name( iv_name ).
|
select_branch( iv_name ).
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
@ -435,15 +435,15 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
||||||
ls_push = zcl_abapgit_git_porcelain=>push(
|
ls_push = zcl_abapgit_git_porcelain=>push(
|
||||||
is_comment = is_comment
|
is_comment = is_comment
|
||||||
io_stage = io_stage
|
io_stage = io_stage
|
||||||
iv_branch_name = get_branch_name( )
|
iv_branch_name = get_selected_branch( )
|
||||||
iv_url = get_url( )
|
iv_url = get_url( )
|
||||||
iv_parent = get_sha1_remote( )
|
iv_parent = get_current_remote( )
|
||||||
it_old_objects = get_objects( ) ).
|
it_old_objects = get_objects( ) ).
|
||||||
|
|
||||||
set_objects( ls_push-new_objects ).
|
set_objects( ls_push-new_objects ).
|
||||||
set_files_remote( ls_push-new_files ).
|
set_files_remote( ls_push-new_files ).
|
||||||
|
|
||||||
mv_branch = ls_push-branch.
|
mv_current_commit = ls_push-branch.
|
||||||
|
|
||||||
update_local_checksums( ls_push-updated_files ).
|
update_local_checksums( ls_push-updated_files ).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user