Make the default remote configurable through the cli
Dependencies
- [2]
H4AU6QRPNew config for HTTP remotes - [3]
KWAGWB73Adding extra dependencies from the config file - [4]
ZSFJT4SFAllow remotes to have a different push and pull address - [5]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [6]
SEWGHUHQ.pijul/config: simplify remotes and hooks - [*]
AEPEFS7OWrite help for each argument
Change contents
- edit in pijul/src/repository.rs at line 150
pub fn update_config(&self) -> Result<(), anyhow::Error> {std::fs::write(self.path.join(DOT_DIR).join("config"),toml::to_string(&self.config)?,)?;Ok(())} - replacement in pijul/src/config.rs at line 131
#[serde(default)]#[serde(default, skip_serializing_if = "Vec::is_empty")] - replacement in pijul/src/config.rs at line 133
#[serde(default)]#[serde(default, skip_serializing_if = "Vec::is_empty")] - edit in pijul/src/commands/pushpull.rs at line 31[3.112089][8.1500]
/// Set the default remote#[clap(name = "default")]Default { remote: String }, - edit in pijul/src/commands/pushpull.rs at line 51
}Some(SubRemote::Default { remote }) => {let mut repo = repo;repo.config.default_remote = Some(remote);repo.update_config()?;