Channel renaming (also do not create a new channel when recording on a channel that doesn't exist)
[?]
Mar 2, 2021, 7:38 PM
PGERZ3KJIQIREXAYLKLZR4526X5RPKIA6LSVZL2DGYQ5UVPIIBUQCDependencies
- [2]
Y6EVFMTADon't output files if they aren't in the current channel - [3]
VQPAUKBQchannel switch as an alias to reset - [4]
VL7ZYKHBRunning hooks through shell on Windows and Unix - [5]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [6]
I7VL7VPZMinor cleanup - [7]
JL4WKA5PImplement the Sanakirja concurrency model in a cross-process way - [8]
YN63NUZOSanakirja 1.0
Change contents
- replacement in pijul/src/commands/record.rs at line 65
let mut channel =txn.open_or_create_channel(repo.config.get_current_channel(self.channel.as_deref()).0)?;let channel = repo.config.get_current_channel(self.channel.as_deref()).0;let mut channel = if let Some(channel) = txn.load_channel(channel)? {channel} else {bail!("Channel {:?} not found", channel);}; - replacement in pijul/src/commands/channel.rs at line 76
let repo = Repository::find_root(self.repo_path).await?;let mut repo = Repository::find_root(self.repo_path).await?; - edit in pijul/src/commands/channel.rs at line 93
repo.config.current_channel = Some(to.to_string());repo.save_config()?;