Fixing the map between keys and identities
Dependencies
- [2]
6U42MTEZFixing log -- filters, along with performance improvements - [3]
OU243LABSupport for staging - [4]
A3RM526YIntegrating identity malleability - [5]
EEBKW7VTKeys and identities - [6]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [7]
SMMBFECLConverting to the new patch format "online" - [8]
E7UUQQCCApply changes with prefixes in .pijul/changes - [9]
F2S6XETOFixing log --hash-only - [10]
OU6JOR3CAdd path filtering for log, add json output for log - [11]
CXSCA5HNFixing a counter-intuitive error when a local repo does not exist - [12]
I24UEJQLVarious post-fire fixes - [*]
I52XSRUHMassive cleanup, and simplification - [*]
6F6AAHK4Simplifying pijul::commands::log, and fixing Broken Pipe errors
Change contents
- replacement in pijul/src/commands/record.rs at line 142
let key = super::load_key()?;let (_, key) = super::load_key()?; - edit in pijul/src/commands/mod.rs at line 263
#[serde(default)] - replacement in pijul/src/commands/mod.rs at line 267
fn load_key() -> Result<libpijul::key::SKey, anyhow::Error> {fn load_key() -> Result<(libpijul::key::SecretKey, libpijul::key::SKey), anyhow::Error> { - replacement in pijul/src/commands/mod.rs at line 280
Ok(k.load(pass.as_deref())?)let sk = k.load(pass.as_deref())?;Ok((k, sk)) - edit in pijul/src/commands/log.rs at line 15
use log::*; - edit in pijul/src/commands/log.rs at line 85[15.1491][15.1491]
let mut global_id_path = crate::config::global_config_dir();if let Some(ref mut gl) = global_id_path {gl.push("identities")}debug!("global_id_path = {:?}", global_id_path); - edit in pijul/src/commands/log.rs at line 98[15.1608][15.1608]
global_id_path, - edit in pijul/src/commands/log.rs at line 277
global_id_path: Option<PathBuf>, - edit in pijul/src/commands/log.rs at line 325
- edit in pijul/src/commands/log.rs at line 327
let mut global_id_path = self.global_id_path.clone(); - replacement in pijul/src/commands/log.rs at line 348
let entry =self.mk_log_entry(&mut authors, &mut id_path, h.into(), Some(mrk.into()))?;let entry = self.mk_log_entry(&mut authors,&mut id_path,&mut global_id_path,h.into(),Some(mrk.into()),)?; - edit in pijul/src/commands/log.rs at line 376
global_id_path: &mut Option<PathBuf>, - replacement in pijul/src/commands/log.rs at line 394
if let Ok(f) = std::fs::File::open(&self.id_path) {if let Ok(f) = std::fs::File::open(&id_path) { - edit in pijul/src/commands/log.rs at line 400
debug!("{:?} {:?}", global_id_path, id);if let Some(ref mut global_id_path) = global_id_path {if id.is_none() {global_id_path.push(e.key());debug!("{:?}", global_id_path);if let Ok(f) = std::fs::File::open(&global_id_path) {if let Ok(id_) = serde_json::from_reader(f) {id = Some(id_)} else {debug!("wrong identity for {:?}", e.key());}}global_id_path.pop();}} - replacement in pijul/src/commands/log.rs at line 417
e.insert(id.login)if let Some(ref name) = id.name {if let Some(ref email) = id.email {e.insert(format!("{} ({}) <{}>", name, id.login, email))} else {e.insert(format!("{} ({})", name, id.login))}} else {e.insert(id.login)} - replacement in pijul/src/commands/key.rs at line 118
let key = super::load_key()?;let (_, key) = super::load_key()?;