javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java
public void setOptTrack(boolean optTrack) {
    checkCanSetCreateOption("--track");
    if (optNoTrack && optTrack) {
      throw new IllegalArgumentException(ExceptionMessageMap.getMessage("000120")
          + "  --track cannot be used with --no-track.");
    } 
    this.optTrack = optTrack;
  }
public void setOptTrack(boolean optTrack) {
    checkCanSetCreateOption("--track");
    if (optNoTrack && optTrack) {
      throw new IllegalArgumentException(ExceptionMessageMap.getMessage("000120")
          + "  --track cannot be used with --no-track.");
    } 
    this.optTrack = optTrack;
  }
Checks whether the --track option should be set and sets it.

@param optTrack True if the --track option should be used, false otherwise.