code: public void setMode(String mode) {
                  if ("soft".equalsIgnoreCase(mode)) {
                          this.mode = ResetType.SOFT;
                  } else if ("mixed".equalsIgnoreCase(mode)) {
                          this.mode = ResetType.MIXED;
                  } else if ("hard".equalsIgnoreCase(mode)) {
                          this.mode = ResetType.HARD;
                  } else if ("merge".equalsIgnoreCase(mode)) {
                          this.mode = ResetType.MERGE;
                  } else if ("keep".equalsIgnoreCase(mode)) {
                          this.mode = ResetType.KEEP;
                  } else {
                          this.mode = ResetType.MIXED;
                  }
          }
docs: If mode is set, apply the specified mode according to Git manual.
  
  @antdoc.notrequired
  @param mode the mode used to perform git reset. (Default is MIXED)