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

@param optNoAbbrev True if the --no-abbrev option should be used, false otherwise.