Include email in log entries without keys

andybalholm
Mar 15, 2023, 10:05 PM
54JDKQZ5SUBJ7BCSUI7Y3CU4DVXPEGUZHLNK3WSSA7NBZAOTFVSAC

Dependencies

  • [2] OU6JOR3C Add path filtering for log, add json output for log
  • [3] SMMBFECL Converting to the new patch format "online"
  • [4] A3RM526Y Integrating identity malleability
  • [5] F2S6XETO Fixing log --hash-only
  • [6] NAUECZW3 Fixing the map between keys and identities
  • [7] U6TQX5Z2 pager function respects cli option and user config files, PAGER env var
  • [*] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • replacement in pijul/src/commands/log.rs at line 382
    [2.12675][2.12675:12790]()
    let auth = if let Some(k) = auth.0.remove("key") {
    match author_kvs.entry(k) {
    [2.12675]
    [2.12790]
    if let Some(k) = auth.0.remove("key") {
    let auth = match author_kvs.entry(k) {
  • replacement in pijul/src/commands/log.rs at line 430
    [3.2445][3.2445:2467]()
    }
    [3.2209]
    [2.13544]
    };
    auth.to_owned()
  • replacement in pijul/src/commands/log.rs at line 433
    [2.13569][2.13569:13668]()
    auth.0.get("name").unwrap()
    };
    auth.to_owned()
    [2.13569]
    [2.13668]
    format!(
    "{}{}",
    auth.0.get("name").unwrap(),
    match auth.0.get("email") {
    Some(email) => format!(" <{}>", email),
    None => "".to_string(),
    },
    )
    }