Writing an initial config file at initialisation
Dependencies
- [2]
H72JG6HLInit feature; specific .ignore configs - [3]
AOKPEHAJFixing the `pijul git` command with the new init - [4]
LYTVEPH3Avoid cloning into an existing path - [5]
NEJOYVJBFixing the Git feature - [6]
ZBNKSYA6Fixing a bus error when starting a transaction on a full disk - [7]
VGBH3ED6The Git feature does not need to be async - [8]
B3QWIGDEFixing the Git features with the latest Pijul (+ conflicts in Cargo.toml) - [9]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [10]
SQVWP4LUWhen clone fails, only remove directories we have created (not other directories) - [11]
Q7CHNDXNInit repo with default .ignore file - [12]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul - [13]
JL4WKA5PImplement the Sanakirja concurrency model in a cross-process way - [14]
RUBBHYZ7Removing unnecessary async/await - [15]
RGJWLQWBWhen cloning, try to init *before* setting up the path Drop (pijul::commands::clone::RepoPath)
Change contents
- replacement in pijul/src/repository.rs at line 111
kind: Option<&String>,kind: Option<&str>,remote: Option<&str>, - edit in pijul/src/repository.rs at line 128
init_default_config(&cur, remote)?; - edit in pijul/src/repository.rs at line 152
fn init_default_config(path: &std::path::Path, remote: Option<&str>) -> Result<(), anyhow::Error> {use std::io::Write;let mut path = path.join(DOT_DIR);path.push("config");if std::fs::metadata(&path).is_err() {let mut f = std::fs::File::create(&path)?;if let Some(rem) = remote {writeln!(f, "default_remote = {:?}", rem)?;}writeln!(f, "[hooks]\nrecord = []")?;}Ok(())} - replacement in pijul/src/repository.rs at line 168
fn init_dot_ignore(base_path: std::path::PathBuf,kind: Option<&String>,) -> Result<(), anyhow::Error> {fn init_dot_ignore(base_path: std::path::PathBuf, kind: Option<&str>) -> Result<(), anyhow::Error> { - replacement in pijul/src/repository.rs at line 198
kind: Option<&String>,kind: Option<&str>, - replacement in pijul/src/commands/init.rs at line 24
let repo = Repository::init(self.path, self.kind.as_ref())?;let repo = Repository::init(self.path, self.kind.as_deref(), None)?; - replacement in pijul/src/commands/git.rs at line 47
Repository::init(self.repo_path.clone(), None)?Repository::init(self.repo_path.clone(), None, None)? - replacement in pijul/src/commands/clone.rs at line 75
let mut repo = Repository::init(Some(path), None)?;let mut repo = Repository::init(Some(path), None, Some(&self.remote))?;