Credit and reset relative to current directory instead of the root

[?]
Nov 20, 2020, 9:37 PM
NLGQAH4H35XC5XTH26BRXVFWGPPAMA4MDN3MHMGCOYE6ZZQMQ4AAC

Dependencies

  • [2] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [3] L4JXJHWX pijul/*: reorganize imports and remove extern crate
  • [4] M3VTIZCP Validate change before reset

Change contents

  • replacement in pijul/src/commands/reset.rs at line 50
    [2.99262][2.99262:99322]()
    let path = self.files[0].to_str().unwrap();
    [2.99262]
    [2.99322]
    let mut root = crate::current_dir()?;
    root.push(&self.files[0]);
    let path = root.strip_prefix(&repo.path)?.to_str().unwrap();
  • replacement in pijul/src/commands/credit.rs at line 44
    [2.180112][2.180112:180164]()
    let path = self.file.to_str().unwrap();
    [2.180112]
    [2.180164]
    let mut root = crate::current_dir()?;
    root.push(&self.file);
    let path = root.strip_prefix(&repo.path)?.to_str().unwrap();
  • edit in pijul/src/commands/credit.rs at line 98
    [2.181558]
    [2.181558]
    .filter(|e| e.flag.contains(EdgeFlags::BLOCK) && !e.introduced_by.is_root())
  • edit in pijul/src/commands/credit.rs at line 105
    [2.181725]
    [2.181725]
    write!(self.w, "\n")?;
  • replacement in pijul/src/commands/credit.rs at line 116
    [2.182042][2.182042:182077]()
    writeln!(self.w, "")?;
    [2.182042]
    [2.182077]
    writeln!(self.w, "\n")?;