mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
branch overview, hide gh-pages and bugfix
This commit is contained in:
parent
58a3457d1e
commit
a3a5388d63
|
@ -40,6 +40,8 @@ CLASS lcl_branch_overview DEFINITION FINAL.
|
|||
RAISING lcx_exception,
|
||||
determine_merges
|
||||
RAISING lcx_exception,
|
||||
fixes
|
||||
RAISING lcx_exception,
|
||||
get_git_objects
|
||||
IMPORTING io_repo TYPE REF TO lcl_repo_online
|
||||
RETURNING VALUE(rt_objects) TYPE ty_objects_tt
|
||||
|
@ -67,6 +69,7 @@ CLASS lcl_branch_overview IMPLEMENTATION.
|
|||
|
||||
determine_branch( ).
|
||||
determine_merges( ).
|
||||
fixes( ).
|
||||
|
||||
SORT gt_commits BY time ASCENDING.
|
||||
|
||||
|
@ -86,6 +89,10 @@ CLASS lcl_branch_overview IMPLEMENTATION.
|
|||
|
||||
gt_branches = lcl_git_transport=>branches( io_repo->get_url( ) ).
|
||||
|
||||
DELETE gt_branches WHERE name = 'refs/heads/gh-pages'.
|
||||
DELETE gt_branches WHERE name CP 'refs/tags/*'.
|
||||
DELETE gt_branches WHERE name CP 'refs/pull/*'.
|
||||
|
||||
lcl_git_transport=>upload_pack( EXPORTING io_repo = io_repo
|
||||
iv_deepen = abap_false
|
||||
it_branches = gt_branches
|
||||
|
@ -127,6 +134,20 @@ CLASS lcl_branch_overview IMPLEMENTATION.
|
|||
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD fixes.
|
||||
|
||||
FIELD-SYMBOLS: <ls_commit> LIKE LINE OF gt_commits.
|
||||
|
||||
|
||||
LOOP AT gt_commits ASSIGNING <ls_commit> WHERE NOT merge IS INITIAL.
|
||||
* commits from old branches
|
||||
IF <ls_commit>-branch = <ls_commit>-merge.
|
||||
CLEAR <ls_commit>-merge.
|
||||
ENDIF.
|
||||
ENDLOOP.
|
||||
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD determine_merges.
|
||||
|
||||
FIELD-SYMBOLS: <ls_merged> LIKE LINE OF gt_commits,
|
||||
|
|
Loading…
Reference in New Issue
Block a user