diff --git a/src/PowerVersion/Repositories/GitRepository.cs b/src/PowerVersion/Repositories/GitRepository.cs index f114553..c2ca954 100644 --- a/src/PowerVersion/Repositories/GitRepository.cs +++ b/src/PowerVersion/Repositories/GitRepository.cs @@ -54,7 +54,7 @@ public GitCommit GetCommit(string reference = "HEAD") public IEnumerable GetCommits(string reference = "HEAD", string path = null) { return JsonSerializer.Deserialize( - this.ExecuteArrayCommand($"log {reference} --pretty=format:{{\\\"Hash\\\":\\\"%h\\\",\\\"Subject\\\":\\\"%s\\\",\\\"Body\\\":\\\"%b\\\"}} --no-abbrev-commit --reverse {(path != null ? $"-- {path}" : string.Empty)}")); + this.ExecuteArrayCommand($"--no-pager log {reference} --pretty=format:{{\\\"Hash\\\":\\\"%h\\\",\\\"Subject\\\":\\\"%s\\\",\\\"Body\\\":\\\"%b\\\"}} --no-abbrev-commit --reverse {(path != null ? $"-- {path}" : string.Empty)}")); } /// @@ -71,7 +71,7 @@ public IEnumerable GetCommits(string left, string right, string path } return JsonSerializer.Deserialize( - this.ExecuteArrayCommand($"log {left}..{right} --pretty=format:{{\\\"Hash\\\":\\\"%h\\\",\\\"Subject\\\":\\\"%s\\\",\\\"Body\\\":\\\"%b\\\"}} --no-abbrev-commit --reverse {(path != null ? $"-- {path}" : string.Empty)}")); + this.ExecuteArrayCommand($"--no-pager log {left}..{right} --pretty=format:{{\\\"Hash\\\":\\\"%h\\\",\\\"Subject\\\":\\\"%s\\\",\\\"Body\\\":\\\"%b\\\"}} --no-abbrev-commit --reverse {(path != null ? $"-- {path}" : string.Empty)}")); } ///