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 ; } }
If mode is set apply the specified mode according to Git manual .