예제 #1
0
        private QueryRevisionDiffParameters GetParameters(DiffOptions options)
        {
            var parameters = new QueryRevisionDiffParameters(_revision.Pointer)
            {
                Paths = _paths,
            };

            ApplyCommonDiffOptions(parameters, options);
            return(parameters);
        }
예제 #2
0
        private QueryRevisionDiffParameters GetParameters(DiffOptions options)
        {
            Assert.IsNotNull(options);

            var parameters = new QueryRevisionDiffParameters(_stashedState.Name)
            {
                Paths = _paths,
            };

            ApplyCommonDiffOptions(parameters, options);
            return(parameters);
        }
예제 #3
0
        public Command GetQueryStashDiffCommand(QueryRevisionDiffParameters parameters)
        {
            Assert.IsNotNull(parameters);

            var args = new List<ICommandArgument>();
            args.Add(StashCommand.Show());
            InsertDiffParameters1(parameters, args);
            args.Add(new CommandParameter(parameters.Revision));
            InsertDiffParameters2(parameters, args);
            return new StashCommand(args);
        }
예제 #4
0
        public Command GetQueryRevisionDiffCommand(QueryRevisionDiffParameters parameters)
        {
            Assert.IsNotNull(parameters);

            var args = new List<ICommandArgument>();
            args.Add(LogCommand.MaxCount(1));
            InsertDiffParameters1(parameters, args);
            args.Add(new CommandFlag("-c"));
            args.Add(new CommandParameter(parameters.Revision));
            InsertDiffParameters2(parameters, args);
            return new LogCommand(args);
        }