code: public void setListMode(String listMode) {
                  if (!GitTaskUtils.isNullOrBlankString(listMode)) {
                          try {
                                  this.listMode = ListBranchCommand.ListMode.valueOf(listMode);
                          }
                          catch (IllegalArgumentException e) {
                                  ListBranchCommand.ListMode[] listModes = ListBranchCommand.ListMode.values();
  
                                  List<String> listModeValidValues = new ArrayList<String>(listModes.length);
  
                                  for (ListBranchCommand.ListMode aListMode : listModes) {
                                          listModeValidValues.add(aListMode.name());
                                  }
  
                                  String validModes = listModeValidValues.toString();
  
                                  throw new BuildException(String.format("Valid listMode options are: %s.", validModes));
                          }
                  }
          }
docs: Sets the listing mode
  
  @antdoc.notrequired
  @param listMode - optional: corresponds to the -r/-a options; by default, only local branches will be listed