/AWS1/CL_CMT=>UPDATEDEFAULTBRANCH()
¶
About UpdateDefaultBranch¶
Sets or changes the default branch name for the specified repository.
If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_repositoryname
TYPE /AWS1/CMTREPOSITORYNAME
/AWS1/CMTREPOSITORYNAME
¶
The name of the repository for which you want to set or change the default branch.
iv_defaultbranchname
TYPE /AWS1/CMTBRANCHNAME
/AWS1/CMTBRANCHNAME
¶
The name of the branch to set as the default branch.
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
lo_client->/aws1/if_cmt~updatedefaultbranch(
iv_defaultbranchname = |string|
iv_repositoryname = |string|
).