mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
Submodules support (#5883)
Co-authored-by: Lars Hvam <larshp@hotmail.com> Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
parent
613a5eaa8b
commit
ab7c17240c
|
@ -480,7 +480,8 @@ CLASS zcl_abapgit_git_pack IMPLEMENTATION.
|
|||
ls_node-chmod = lv_chmod.
|
||||
IF ls_node-chmod <> zif_abapgit_definitions=>c_chmod-dir
|
||||
AND ls_node-chmod <> zif_abapgit_definitions=>c_chmod-file
|
||||
AND ls_node-chmod <> zif_abapgit_definitions=>c_chmod-executable.
|
||||
AND ls_node-chmod <> zif_abapgit_definitions=>c_chmod-executable
|
||||
AND ls_node-chmod <> zif_abapgit_definitions=>c_chmod-submodule.
|
||||
zcx_abapgit_exception=>raise( |Unknown chmod| ).
|
||||
ENDIF.
|
||||
|
||||
|
|
|
@ -774,7 +774,8 @@ CLASS ZCL_ABAPGIT_GIT_PORCELAIN IMPLEMENTATION.
|
|||
LOOP AT lt_nodes ASSIGNING <ls_node>.
|
||||
CASE <ls_node>-chmod.
|
||||
WHEN zif_abapgit_definitions=>c_chmod-file
|
||||
OR zif_abapgit_definitions=>c_chmod-executable.
|
||||
OR zif_abapgit_definitions=>c_chmod-executable
|
||||
OR zif_abapgit_definitions=>c_chmod-submodule.
|
||||
APPEND INITIAL LINE TO rt_expanded ASSIGNING <ls_exp>.
|
||||
<ls_exp>-path = iv_base.
|
||||
<ls_exp>-name = <ls_node>-name.
|
||||
|
|
|
@ -429,6 +429,7 @@ INTERFACE zif_abapgit_definitions
|
|||
file TYPE ty_chmod VALUE '100644',
|
||||
executable TYPE ty_chmod VALUE '100755',
|
||||
dir TYPE ty_chmod VALUE '40000 ',
|
||||
submodule TYPE ty_chmod VALUE '160000',
|
||||
END OF c_chmod .
|
||||
CONSTANTS c_crlf TYPE c LENGTH 2 VALUE cl_abap_char_utilities=>cr_lf ##NO_TEXT.
|
||||
CONSTANTS c_newline TYPE c LENGTH 1 VALUE cl_abap_char_utilities=>newline ##NO_TEXT.
|
||||
|
|
Loading…
Reference in New Issue
Block a user