mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Consider filter at zcl_abapgit_repo_status=>calculate
(#6480)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
parent
a029fa25be
commit
3f41328ab6
|
@ -9,6 +9,7 @@ CLASS zcl_abapgit_repo_status DEFINITION
|
||||||
IMPORTING
|
IMPORTING
|
||||||
!io_repo TYPE REF TO zcl_abapgit_repo
|
!io_repo TYPE REF TO zcl_abapgit_repo
|
||||||
!ii_log TYPE REF TO zif_abapgit_log OPTIONAL
|
!ii_log TYPE REF TO zif_abapgit_log OPTIONAL
|
||||||
|
!ii_obj_filter TYPE REF TO zif_abapgit_object_filter OPTIONAL
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt
|
VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt
|
||||||
RAISING
|
RAISING
|
||||||
|
@ -260,7 +261,8 @@ CLASS zcl_abapgit_repo_status IMPLEMENTATION.
|
||||||
DATA lo_instance TYPE REF TO zcl_abapgit_repo_status.
|
DATA lo_instance TYPE REF TO zcl_abapgit_repo_status.
|
||||||
DATA lo_consistency_checks TYPE REF TO lcl_status_consistency_checks.
|
DATA lo_consistency_checks TYPE REF TO lcl_status_consistency_checks.
|
||||||
|
|
||||||
lt_local = io_repo->get_files_local( ii_log = ii_log ).
|
lt_local = io_repo->get_files_local( ii_log = ii_log
|
||||||
|
ii_obj_filter = ii_obj_filter ).
|
||||||
|
|
||||||
IF lines( lt_local ) <= 2.
|
IF lines( lt_local ) <= 2.
|
||||||
" Less equal two means that we have only the .abapgit.xml and the package in
|
" Less equal two means that we have only the .abapgit.xml and the package in
|
||||||
|
@ -270,7 +272,8 @@ CLASS zcl_abapgit_repo_status IMPLEMENTATION.
|
||||||
io_repo->find_remote_dot_abapgit( ).
|
io_repo->find_remote_dot_abapgit( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
lt_remote = io_repo->get_files_remote( iv_ignore_files = abap_true ).
|
lt_remote = io_repo->get_files_remote( ii_obj_filter = ii_obj_filter
|
||||||
|
iv_ignore_files = abap_true ).
|
||||||
|
|
||||||
li_exit = zcl_abapgit_exit=>get_instance( ).
|
li_exit = zcl_abapgit_exit=>get_instance( ).
|
||||||
li_exit->pre_calculate_repo_status(
|
li_exit->pre_calculate_repo_status(
|
||||||
|
|
|
@ -89,7 +89,8 @@ CLASS zcl_abapgit_stage_logic IMPLEMENTATION.
|
||||||
|
|
||||||
rs_files-local = io_repo->get_files_local( ii_obj_filter = ii_obj_filter ).
|
rs_files-local = io_repo->get_files_local( ii_obj_filter = ii_obj_filter ).
|
||||||
rs_files-remote = io_repo->get_files_remote( ii_obj_filter ).
|
rs_files-remote = io_repo->get_files_remote( ii_obj_filter ).
|
||||||
rs_files-status = zcl_abapgit_repo_status=>calculate( io_repo ).
|
rs_files-status = zcl_abapgit_repo_status=>calculate( io_repo = io_repo
|
||||||
|
ii_obj_filter = ii_obj_filter ).
|
||||||
|
|
||||||
remove_identical( CHANGING cs_files = rs_files ).
|
remove_identical( CHANGING cs_files = rs_files ).
|
||||||
remove_ignored( EXPORTING io_repo = io_repo
|
remove_ignored( EXPORTING io_repo = io_repo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user