Beispiel #1
0
        public async Task <IEnumerable <GitCommit> > LogAsync(GitArguments.LogOptions options = default, IEnumerable <string> paths = null)
        {
            var result = await RunGitAsync(GitArguments.Log(options, paths));

            if (result.ExitCode == 1)
            {
                return(Enumerable.Empty <GitCommit>());
            }
            else
            {
                return(GitParsing.ParseLog(result.Output));
            }
        }
Beispiel #2
0
 public Task <IEnumerable <GitCommit> > LogAsync(GitArguments.LogOptions options = default, params string[] paths)
 => LogAsync(options: options, paths: paths.AsEnumerable());