Exemple #1
0
 public GitLogTask(IPlatform platform,
                   IGitObjectFactory gitObjectFactory,
                   string file,
                   CancellationToken token = default)
     : this(platform, gitObjectFactory, file, 0, token)
 {
 }
Exemple #2
0
 public GitLogTask(IPlatform platform,
                   IGitObjectFactory gitObjectFactory,
                   int numberOfCommits,
                   CancellationToken token = default)
     : this(platform, gitObjectFactory, null, numberOfCommits, token)
 {
 }
Exemple #3
0
 public GitLogTask(IGitObjectFactory gitObjectFactory,
                   CancellationToken token, BaseOutputListProcessor <GitLogEntry> processor = null)
     : base(token, processor ?? new LogEntryOutputProcessor(gitObjectFactory))
 {
     Name      = TaskName;
     arguments = baseArguments;
 }
        public GitStatusTask(IPlatform platform,
                             IGitObjectFactory gitObjectFactory,
                             CancellationToken token = default)
            : base(platform, null, outputProcessor: new GitStatusOutputProcessor(gitObjectFactory), token: token)

        {
            Name = TaskName;
        }
Exemple #5
0
 public GitListLocksTask(IGitObjectFactory gitObjectFactory, bool local,
                         CancellationToken token, BaseOutputListProcessor <GitLock> processor = null)
     : base(token, processor ?? new LockOutputProcessor(gitObjectFactory))
 {
     args = "lfs locks";
     if (local)
     {
         args += " --local";
     }
 }
Exemple #6
0
 public GitLogTask(int numberOfCommits, IGitObjectFactory gitObjectFactory,
                   CancellationToken token,
                   BaseOutputListProcessor <GitLogEntry> processor = null)
     : base(token, processor ?? new LogEntryOutputProcessor(gitObjectFactory))
 {
     Name      = TaskName;
     arguments = baseArguments;
     if (numberOfCommits > 0)
     {
         arguments += " -n " + numberOfCommits;
     }
 }
Exemple #7
0
        public GitLogTask(IPlatform platform,
                          IGitObjectFactory gitObjectFactory,
                          string file             = null, int numberOfCommits = 0,
                          CancellationToken token = default)
            : base(platform, null, outputProcessor: new LogEntryOutputProcessor(gitObjectFactory), token: token)
        {
            Name      = TaskName;
            arguments = baseArguments;
            if (numberOfCommits > 0)
            {
                arguments += " -n " + numberOfCommits;
            }

            if (file != null)
            {
                arguments += " -- ";
                arguments += " \"" + file + "\"";
            }
        }
Exemple #8
0
 public GitStatusTask(IGitObjectFactory gitObjectFactory,
                      CancellationToken token, IOutputProcessor <GitStatus?> processor = null)
     : base(token, processor ?? new StatusOutputProcessor(gitObjectFactory))
 {
     Name = TaskName;
 }
Exemple #9
0
 public LockOutputProcessor(IGitObjectFactory gitObjectFactory)
 {
     Guard.ArgumentNotNull(gitObjectFactory, "gitObjectFactory");
     this.gitObjectFactory = gitObjectFactory;
 }
 public LogEntryOutputProcessor(IGitObjectFactory gitObjectFactory)
 {
     Guard.ArgumentNotNull(gitObjectFactory, "gitObjectFactory");
     this.gitObjectFactory = gitObjectFactory;
     Reset();
 }
Exemple #11
0
 public GitLogTask(string file,
                   IGitObjectFactory gitObjectFactory,
                   CancellationToken token, BaseOutputListProcessor <GitLogEntry> processor = null)
     : this(file, 0, gitObjectFactory, token, processor)
 {
 }