Git concurrency limit (#420)
This commit is contained in:
committed by
GitHub
parent
3f9ab8ccd7
commit
612d74840e
@@ -50,6 +50,11 @@ pub enum Step {
|
||||
Tmux,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Default, Debug)]
|
||||
pub struct Git {
|
||||
max_concurrency: Option<usize>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Default, Debug)]
|
||||
pub struct Brew {
|
||||
greedy_cask: Option<bool>,
|
||||
@@ -93,6 +98,7 @@ pub struct ConfigFile {
|
||||
composer: Option<Composer>,
|
||||
brew: Option<Brew>,
|
||||
linux: Option<Linux>,
|
||||
git: Option<Git>,
|
||||
}
|
||||
|
||||
impl ConfigFile {
|
||||
@@ -440,6 +446,11 @@ impl Config {
|
||||
.and_then(|linux| linux.dnf_arguments.as_deref())
|
||||
}
|
||||
|
||||
/// Concurrency limit for git
|
||||
pub fn git_concurrency_limit(&self) -> Option<usize> {
|
||||
self.config_file.git.as_ref().and_then(|git| git.max_concurrency)
|
||||
}
|
||||
|
||||
/// Extra yay arguments
|
||||
#[allow(dead_code)]
|
||||
pub fn enable_tlmgr_linux(&self) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user