perf: only display the first 200 log entries when previewing git-repos

This commit is contained in:
Alexandre Pasmantier 2025-01-07 12:47:13 +01:00
parent a2a264cc4d
commit 647e00ccd4

View File

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