/// <param name="mode">the mode of the reset command</param> /// <returns>this instance</returns> public virtual NGit.Api.ResetCommand SetMode(ResetCommand.ResetType mode) { if (!filepaths.IsEmpty()) { throw new JGitInternalException(MessageFormat.Format(JGitText.Get().illegalCombinationOfArguments , "[--mixed | --soft | --hard]", "<paths>...")); } this.mode = mode; return(this); }
/// <param name="mode">the mode of the reset command</param> /// <returns>this instance</returns> public virtual NGit.Api.ResetCommand SetMode(ResetCommand.ResetType mode) { this.mode = mode; return(this); }