commands/record: amend current change if unspecified
[?]
Nov 28, 2020, 1:20 AM
MF3WAHBIH6Q2F7ZOKWPEJF6VGSKJITWLR3Z64GTD6YQZNA5EATWQCDependencies
- [2]
4H2XTVJ2Fix some mistakes in the docs - [3]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [4]
I52XSRUHMassive cleanup, and simplification - [5]
SEWGHUHQ.pijul/config: simplify remotes and hooks - [6]
AEPEFS7OWrite help for each argument
Change contents
- replacement in pijul/src/commands/record.rs at line 44
pub amend: Option<String>,#[allow(clippy::option_option)]pub amend: Option<Option<String>>, - replacement in pijul/src/commands/record.rs at line 73
let (h, _) = txn.hash_from_prefix(amend)?;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(());};