// Creates a branch in a repository and points the branch to a commit. Calling the
// create branch operation does not set a repository's default branch. To do this,
// call the update default branch operation.
Creates a branch in a repository and points the branch to a commit. Calling the
create branch operation does not set a repository's default branch. To do this,
call the update default branch operation.
// Creates a branch in a repository and points the branch to a commit . Calling the // create branch operation does not set a repository ' s default branch . To do this // call the update default branch operation .
func (c *Client) CreateBranch(ctx context.Context, params *CreateBranchInput, optFns ...func(*Options)) (*CreateBranchOutput, error) {
	if params == nil {
		params = &CreateBranchInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateBranch", params, optFns, addOperationCreateBranchMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateBranchOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateBranch ( ctx context . Context , params * CreateBranchInput , optFns ... func ( * Options ) ) ( * CreateBranchOutput , error ) { if params == nil { params = & CreateBranchInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateBranchMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateBranchOutput ) out . ResultMetadata = metadata return out , nil }
Creates a branch in a repository and points the branch to a commit.
Creates a branch in a repository and points the branch to a commit .