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

@param optNoColor True if the --no-color option should be used, false otherwise.