Add reset_overwrites_changes config option. When set to never --force is required for reset
Dependencies
- [2]
RUBBHYZ7Removing unnecessary async/await - [3]
FVU3Y2U3Adding a local "unrecord_changes" option in addition to the global one - [4]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [5]
VQPAUKBQchannel switch as an alias to reset - [*]
SLJ3OHD4unrecord: show list of changes if none were given as arguments - [*]
5BB266P6Optional colours in the global config file - [*]
5OGOE4VWStore the current channel in the pristine - [*]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul
Change contents
- edit in pijul/src/config.rs at line 14
pub reset_overwrites_changes: Option<Choice>, - edit in pijul/src/config.rs at line 139
pub reset_overwrites_changes: Option<Choice>, - replacement in pijul/src/commands/reset.rs at line 34
self.reset(true)let reset_overwrites_changes = crate::config::Global::load().ok().and_then(|c| c.0.reset_overwrites_changes);let overwrite_changes = match reset_overwrites_changes.as_ref() {Some(crate::config::Choice::Never) => false,Some(crate::config::Choice::Auto) | Some(crate::config::Choice::Always) | _ => true,};self.reset(overwrite_changes) - edit in pijul/src/commands/reset.rs at line 148[9.1334][10.3996]
if !overwrite_changes && !self.force {writeln!(stderr, "Unrecorded changes will be lost")?;writeln!(stderr,"Use --force to reset repository to last recorded change")?;return Ok(());}