/// <inheritdoc /> public IObservable <Unit> Reset(IGitIdObject gitObject, ResetMode resetMode, IScheduler scheduler = null) { if (gitObject == null) { throw new ArgumentNullException(nameof(gitObject)); } var arguments = new[] { "reset", $"--{resetMode.ToString().ToLowerInvariant()}", gitObject.Sha }; return(_gitProcessManager.RunGit(arguments, showInOutput: true, scheduler: scheduler).WhenDone()); }
/// <inheritdoc /> public IObservable <Unit> Reset(IGitIdObject gitObject, ResetMode resetMode, IScheduler scheduler = null) { string[] arguments = { "reset", $"--{resetMode.ToString().ToLowerInvariant()}", gitObject.Sha }; return(this.gitProcessManager.RunGit(arguments, showInOutput: true, scheduler: scheduler).WhenDone()); }