Skip to content

Commit

Permalink
With 'show changes only' enabled, also filter changed files, not just…
Browse files Browse the repository at this point in the history
… objects (#2740)

* When 'show changes only' enabled, also filter changed files, not just objects

Fixes #2739

* fix whitespace

* Fix syntax error
  • Loading branch information
FreHu authored and larshp committed Jun 16, 2019
1 parent 0b78d4c commit abc43d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/zcl_abapgit_repo_content_list.clas.abap
Expand Up @@ -197,8 +197,12 @@ CLASS ZCL_ABAPGIT_REPO_CONTENT_LIST IMPLEMENTATION.

METHOD filter_changes.

DELETE ct_repo_items WHERE changes = 0.
FIELD-SYMBOLS: <ls_item> TYPE zif_abapgit_definitions=>ty_repo_item.

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


Expand Down

0 comments on commit abc43d4

Please sign in to comment.