Add a configuration variable to control git arguments (fix #193)
This commit is contained in:
@@ -91,6 +91,7 @@ pub struct ConfigFile {
|
||||
disable: Option<Vec<Step>>,
|
||||
remote_topgrades: Option<Vec<String>>,
|
||||
ssh_arguments: Option<String>,
|
||||
git_arguments: Option<String>,
|
||||
}
|
||||
|
||||
impl ConfigFile {
|
||||
@@ -279,6 +280,11 @@ impl Config {
|
||||
&self.config_file.ssh_arguments
|
||||
}
|
||||
|
||||
/// Extra Git arguments
|
||||
pub fn git_arguments(&self) -> &Option<String> {
|
||||
&self.config_file.git_arguments
|
||||
}
|
||||
|
||||
/// Prompt for a key before exiting
|
||||
pub fn keep_at_end(&self) -> bool {
|
||||
self.opt.keep_at_end || env::var("TOPGRADE_KEEP_END").is_ok()
|
||||
|
||||
Reference in New Issue
Block a user