commands/record: amend current change if unspecified

[?]
Nov 28, 2020, 1:20 AM
MF3WAHBIH6Q2F7ZOKWPEJF6VGSKJITWLR3Z64GTD6YQZNA5EATWQC

Dependencies

  • [2] 4H2XTVJ2 Fix some mistakes in the docs
  • [3] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [4] I52XSRUH Massive cleanup, and simplification
  • [5] SEWGHUHQ .pijul/config: simplify remotes and hooks
  • [6] AEPEFS7O Write help for each argument

Change contents

  • replacement in pijul/src/commands/record.rs at line 44
    [3.102694][3.102694:102725]()
    pub amend: Option<String>,
    [3.102694]
    [2.910]
    #[allow(clippy::option_option)]
    pub amend: Option<Option<String>>,
  • replacement in pijul/src/commands/record.rs at line 73
    [3.103811][3.103811:103866]()
    let (h, _) = txn.hash_from_prefix(amend)?;
    [3.103811]
    [3.103866]
    let h = if let Some(ref hash) = amend {
    txn.hash_from_prefix(hash)?.0
    } else if let Some((_, (h, _))) = txn.reverse_log(&channel.borrow(), None).next() {
    h
    } else {
    return Ok(());
    };