Credit and reset relative to current directory instead of the root
[?]
Nov 20, 2020, 9:37 PM
NLGQAH4H35XC5XTH26BRXVFWGPPAMA4MDN3MHMGCOYE6ZZQMQ4AACDependencies
- [2]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [3]
L4JXJHWXpijul/*: reorganize imports and remove extern crate - [4]
M3VTIZCPValidate change before reset
Change contents
- replacement in pijul/src/commands/reset.rs at line 50
let path = self.files[0].to_str().unwrap();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
let path = self.file.to_str().unwrap();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
.filter(|e| e.flag.contains(EdgeFlags::BLOCK) && !e.introduced_by.is_root()) - edit in pijul/src/commands/credit.rs at line 105
write!(self.w, "\n")?; - replacement in pijul/src/commands/credit.rs at line 116
writeln!(self.w, "")?;writeln!(self.w, "\n")?;