Fix ignore logic for local files (#4407)

Closes #4405

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Marc Bernard 2021-01-13 02:16:04 -05:00 committed by GitHub
parent 468a1f3df8
commit 231d0c01e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,6 +226,12 @@ CLASS zcl_abapgit_file_status IMPLEMENTATION.
" Process local files and new local files
LOOP AT it_local ASSIGNING <ls_local>.
" Skip ignored files
IF io_dot->is_ignored( iv_path = <ls_local>-file-path
iv_filename = <ls_local>-file-filename ) = abap_true.
CONTINUE.
ENDIF.
APPEND INITIAL LINE TO rt_results ASSIGNING <ls_result>.
IF <ls_local>-item IS NOT INITIAL.
APPEND <ls_local>-item TO lt_items. " Collect for item index