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

@param optMerged True if the --merged option should be used, false otherwise.