Example #1
0
 ///<inheritdoc/>
 public ITask <List <GitLogEntry> > Log(BaseOutputListProcessor <GitLogEntry> processor = null)
 {
     return(new GitLogTask(new GitObjectFactory(environment), cancellationToken, processor)
            .Configure(processManager)
            .Catch(exception => exception is ProcessException &&
                   exception.Message.StartsWith("fatal: your current branch") &&
                   exception.Message.EndsWith("does not have any commits yet"))
            .Then((success, list) => success ? list : new List <GitLogEntry>()));
 }
Example #2
0
 ///<inheritdoc/>
 public ITask <List <GitLock> > ListLocks(bool local, BaseOutputListProcessor <GitLock> processor = null)
 {
     return(new GitListLocksTask(local, cancellationToken, processor)
            .Configure(processManager));
 }
Example #3
0
 ///<inheritdoc/>
 public ITask <List <GitLock> > ListLocks(bool local, BaseOutputListProcessor <GitLock> processor = null)
 {
     return(new GitListLocksTask(local, cancellationToken, processor)
            .Configure(processManager, environment.GitLfsExecutablePath));
 }