Skip to content

Commit

Permalink
When 'show changes only' enabled, also filter changed files, not just…
Browse files Browse the repository at this point in the history
… objects

Fixes #2739
  • Loading branch information
FreHu committed Jun 13, 2019
1 parent f8c017a commit bbf02aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/zcl_abapgit_repo_content_list.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,13 @@ CLASS ZCL_ABAPGIT_REPO_CONTENT_LIST IMPLEMENTATION.


METHOD filter_changes.

FIELD-SYMBOLS: <ls_item> TYPE zif_abapgit_definitions=>ty_repo_item.

DELETE ct_repo_items WHERE changes = 0.

LOOP AT ct_repo_items ASSIGNING <fs_item>.
DELETE <fs_item>-files WHERE is_changed = abap_false.
ENDLOOP.
ENDMETHOD.


Expand Down

0 comments on commit bbf02aa

Please sign in to comment.