About auto-make-branch during element creation

If your config spec has a /main/LATEST rule with a -mkbranch clause, mkelem checks out a subbranch instead of the main branch. For example, suppose your view has this config spec:


element * CHECKEDOUT
element * .../gopher_port/LATEST
element * V1.0.1 -mkbranch gopher_port
element * /main/0 -mkbranch gopher_port 

The /main/0 rule in the last line allows you to create elements. In this case, a gopher_port branch is created for the new element, and this branch is checked out instead of main:


cleartool mkelem -c "new element for Gopher porting work" base.h

Created element "base.h" (type "text_file").
Created branch "gopher_port" from "base.h" version "\main\0".
Checked out "base.h" from version "\main\gopher_port\0". 

The auto-make-branch facility is not invoked if you use the -nco option to suppress checkout of the new element. For more information about auto-make-branch, see the checkout and config_spec reference pages in the VersionVault Command Reference.