private QueryRevisionDiffParameters GetParameters(DiffOptions options) { var parameters = new QueryRevisionDiffParameters(_revision.Pointer) { Paths = _paths, }; ApplyCommonDiffOptions(parameters, options); return(parameters); }
private QueryRevisionDiffParameters GetParameters(DiffOptions options) { Assert.IsNotNull(options); var parameters = new QueryRevisionDiffParameters(_stashedState.Name) { Paths = _paths, }; ApplyCommonDiffOptions(parameters, options); return(parameters); }
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); }
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); }