mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
all repo diff at stage page
This commit is contained in:
parent
e5361702cb
commit
3ee89b3dfc
|
@ -221,6 +221,7 @@ CLASS lcl_html_action_utils IMPLEMENTATION.
|
|||
|
||||
CLEAR: ev_key, eg_file, eg_object.
|
||||
lt_fields = cl_http_utility=>if_http_utility~string_to_fields( |{ iv_string }| ).
|
||||
field_keys_to_upper( CHANGING ct_fields = lt_fields ).
|
||||
|
||||
get_field( EXPORTING name = 'KEY' it = lt_fields CHANGING cv = ev_key ).
|
||||
|
||||
|
|
|
@ -56,7 +56,6 @@ CLASS lcl_gui_page_diff IMPLEMENTATION.
|
|||
|
||||
super->constructor( ).
|
||||
|
||||
ASSERT is_file IS SUPPLIED OR is_object IS SUPPLIED.
|
||||
ASSERT is_file IS INITIAL OR is_object IS INITIAL. " just one passed
|
||||
|
||||
lo_repo ?= lcl_app=>repo_srv( )->get( iv_key ).
|
||||
|
@ -70,7 +69,7 @@ CLASS lcl_gui_page_diff IMPLEMENTATION.
|
|||
iv_path = is_file-path
|
||||
iv_filename = is_file-filename ).
|
||||
|
||||
ELSE. " is_object is supplied
|
||||
ELSEIF is_object IS NOT INITIAL.
|
||||
|
||||
lt_results = lo_repo->status( ).
|
||||
|
||||
|
@ -86,6 +85,21 @@ CLASS lcl_gui_page_diff IMPLEMENTATION.
|
|||
|
||||
ENDLOOP.
|
||||
|
||||
ELSE. " For the whole repo
|
||||
|
||||
lt_results = lo_repo->status( ).
|
||||
|
||||
LOOP AT lt_results ASSIGNING <ls_result>
|
||||
WHERE obj_type IS NOT INITIAL
|
||||
AND match IS INITIAL.
|
||||
|
||||
append_diff( it_remote = lt_remote
|
||||
it_local = lt_local
|
||||
iv_path = <ls_result>-path
|
||||
iv_filename = <ls_result>-filename ).
|
||||
|
||||
ENDLOOP.
|
||||
|
||||
ENDIF.
|
||||
|
||||
IF lines( mt_diff_files ) = 0.
|
||||
|
|
|
@ -150,8 +150,10 @@ CLASS lcl_gui_page_stage IMPLEMENTATION.
|
|||
LOOP AT ms_files-local ASSIGNING <ls_local>.
|
||||
AT FIRST.
|
||||
ro_html->add('<thead><tr>').
|
||||
ro_html->add('<th></th><th colspan="3">LOCAL</th>' ).
|
||||
ro_html->add('</tr></thead>').
|
||||
ro_html->add('<th></th><th colspan="2">LOCAL</th><th>' ).
|
||||
ro_html->add_anchor( iv_txt = |{ lines( ms_files-local ) } diffs|
|
||||
iv_act = |{ gc_action-go_diff }?key={ mo_repo->get_key( ) }| ).
|
||||
ro_html->add('</th></tr></thead>').
|
||||
ro_html->add('<tbody class="local">').
|
||||
ENDAT.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user