Updating the protocol to output a blank line if there are no identities

pmeunier
May 4, 2023, 4:08 PM
QSTVUSKXAEHSKFB4RKSLGWVK6TGRPT64ORQFAL7E3SVO4GMCVDWQC

Dependencies

  • [2] DWSAYGVE Update codebase to use new identity management
  • [3] A3RM526Y Integrating identity malleability
  • [4] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [5] LJFJEX43 Fixing newline issues in the protocol over OpenSSH
  • [6] 4OJWMSOW Fully replace crate::Identity

Change contents

  • edit in pijul/src/commands/protocol.rs at line 342
    [3.16634]
    [3.16634]
    writeln!(o)?;
    o.flush()?;
  • edit in pijul/src/commands/protocol.rs at line 346
    [3.16683]
    [3.16683]
    let mut at_least_one = false;
  • replacement in pijul/src/commands/protocol.rs at line 348
    [3.16713][3.278:349]()
    output_id(id, last_touched, &mut o).unwrap_or(());
    [3.16713]
    [3.19678]
    at_least_one |= output_id(id, last_touched, &mut o).unwrap_or(false);
    }
    debug!("at least one {:?}", at_least_one);
    if !at_least_one {
    writeln!(o)?;
  • replacement in pijul/src/commands/protocol.rs at line 386
    [3.864][3.864:897]()
    ) -> Result<(), anyhow::Error> {
    [3.864]
    [3.897]
    ) -> Result<bool, anyhow::Error> {
  • replacement in pijul/src/commands/protocol.rs at line 400
    [2.1212][2.1212:1239]()
    return Ok(());
    [2.1212]
    [3.2178]
    return Ok(false);
  • replacement in pijul/src/commands/protocol.rs at line 405
    [3.2301][3.2301:2332]()
    return Ok(());
    [3.2301]
    [3.2332]
    return Ok(false);
  • replacement in pijul/src/commands/protocol.rs at line 410
    [3.2525][3.2525:2560]()
    return Ok(());
    [3.2525]
    [3.2560]
    return Ok(false);
  • edit in pijul/src/commands/protocol.rs at line 414
    [3.2669]
    [3.2669]
    return Ok(true)
  • replacement in pijul/src/commands/protocol.rs at line 418
    [3.133607][3.2694:2705]()
    Ok(())
    [3.133607]
    [3.133607]
    Ok(false)