MCPcopy Index your code
hub / github.com/devopsctl/gitlabctl / init

Function init

cmd/new_branch.go:42–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func init() {
43 newCmd.AddCommand(newBranchCmd)
44 addProjectFlag(newBranchCmd)
45 verifyMarkFlagRequired(newBranchCmd, "project")
46 newBranchCmd.Flags().StringP("ref", "r", "",
47 "The branch name or commit SHA to create branch from")
48 verifyMarkFlagRequired(newBranchCmd, "ref")
49}
50
51func runNewBranch(cmd *cobra.Command, branch string) error {
52 opts := new(gitlab.CreateBranchOptions)

Callers

nothing calls this directly

Calls 2

addProjectFlagFunction · 0.85
verifyMarkFlagRequiredFunction · 0.85

Tested by

no test coverage detected