/// <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());
        }
示例#2
0
        /// <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());
        }