Page branch overview: skip orphaned commits

This commit is contained in:
Christian Guenter 2019-01-02 12:11:20 +01:00 committed by Lars Hvam
parent e0c0610bad
commit 20be1e7eef

View File

@ -120,12 +120,16 @@ CLASS zcl_abapgit_gui_page_boverview IMPLEMENTATION.
LOOP AT mt_commits ASSIGNING <ls_commit>. LOOP AT mt_commits ASSIGNING <ls_commit>.
IF sy-tabix = 1. IF sy-tabix = 1.
* assumption: all branches are created from master, todo " assumption: all branches are created from master, todo
ro_html->add( |var { ro_html->add( |var {
escape_branch( <ls_commit>-branch ) } = gitgraph.branch("{ escape_branch( <ls_commit>-branch ) } = gitgraph.branch("{
<ls_commit>-branch }");| ). <ls_commit>-branch }");| ).
ENDIF. ENDIF.
IF <ls_commit>-branch IS INITIAL.
CONTINUE. " we skip orphaned commits
ENDIF.
IF <ls_commit>-compressed = abap_true. IF <ls_commit>-compressed = abap_true.
ro_html->add( |{ escape_branch( <ls_commit>-branch ) }.commit(\{message: "{ ro_html->add( |{ escape_branch( <ls_commit>-branch ) }.commit(\{message: "{
escape_message( <ls_commit>-message ) escape_message( <ls_commit>-message )