From de41791d27fc46e7e1d262f0c5da43ab0a3da9e9 Mon Sep 17 00:00:00 2001 From: larshp Date: Wed, 13 Feb 2019 13:05:31 +0000 Subject: [PATCH] background mode, deletion, fix commit message the message now lists the deleted files, and not all objects that have previously been updated --- src/background/zcl_abapgit_background_push_au.clas.abap | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/background/zcl_abapgit_background_push_au.clas.abap b/src/background/zcl_abapgit_background_push_au.clas.abap index 5fa48d7b9..cf00527f2 100644 --- a/src/background/zcl_abapgit_background_push_au.clas.abap +++ b/src/background/zcl_abapgit_background_push_au.clas.abap @@ -194,6 +194,8 @@ CLASS ZCL_ABAPGIT_BACKGROUND_PUSH_AU IMPLEMENTATION. CREATE OBJECT lo_stage. + ls_comment-comment = 'BG: Deletion' ##NO_TEXT. + LOOP AT is_files-remote ASSIGNING . mo_log->add_info( |removed: { @@ -203,11 +205,13 @@ CLASS ZCL_ABAPGIT_BACKGROUND_PUSH_AU IMPLEMENTATION. lo_stage->rm( iv_path = -path iv_filename = -filename ). + CONCATENATE ls_comment-comment zif_abapgit_definitions=>c_newline -filename + INTO ls_comment-comment. + ENDLOOP. ls_comment-committer-name = 'Deletion' ##NO_TEXT. ls_comment-committer-email = 'deletion@localhost'. - ls_comment-comment = build_comment( is_files ). io_repo->push( is_comment = ls_comment io_stage = lo_stage ).