javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckoutOptions.java
public void setOptB(Ref newBranch) {
    CheckUtilities.validateArgumentRefType(newBranch, RefType.BRANCH, "New Branch Name");
    optB = newBranch;
  }
public void setOptB(Ref newBranch) {
    CheckUtilities.validateArgumentRefType(newBranch, RefType.BRANCH, "New Branch Name");
    optB = newBranch;
  }
public void setOptB ( Ref newBranch ) { CheckUtilities . validateArgumentRefType ( newBranch , RefType . BRANCH , "New Branch Name" ) ; optB = newBranch ; }
Sets the name of the new branch that need to be created from the base branch.

@param newBranch
New branch of type <code>Ref</code> that will be created by &lt;git-checkout&gt;.
Sets the name of the new branch that need to be created from the base branch .