perf: only display the first 200 log entries when previewing git-repos (#241)

This commit is contained in:
Alex Pasmantier 2025-01-07 12:49:09 +01:00 committed by GitHub
parent a2a264cc4d
commit 072ecdba73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ impl Default for Channel {
lazy_static! {
static ref PREVIEW_COMMAND: PreviewCommand = PreviewCommand {
command: String::from(
"cd {} && git log --pretty=medium --all --graph --color",
"cd {} && git log -n 200 --pretty=medium --all --graph --color",
),
delimiter: ":".to_string(),
};