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)); } }
public Task <IEnumerable <GitCommit> > LogAsync(GitArguments.LogOptions options = default, params string[] paths) => LogAsync(options: options, paths: paths.AsEnumerable());