`pijul channel new` to create new, empty channels
[?]
May 17, 2021, 6:33 AM
TFK7CYFQSI6KLVA2XZG6JR7ZF5QSUODJBDYM3PTDPBUHVSDQLAIQCDependencies
- [2]
PGERZ3KJChannel renaming (also do not create a new channel when recording on a channel that doesn't exist) - [*]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [*]
VQPAUKBQchannel switch as an alias to reset
Change contents
- edit in pijul/src/commands/channel.rs at line 32[5.999][4.187365]
/// Create a new, empty channel.#[clap(name = "switch")]New { name: String }, - edit in pijul/src/commands/channel.rs at line 98
}Some(SubCommand::New { name }) => {let repo = Repository::find_root(self.repo_path).await?;let mut txn = repo.pristine.mut_txn_begin()?;if txn.load_channel(&name)?.is_some() {bail!("Channel {} already exists", name)}txn.open_or_create_channel(&name)?;txn.commit()?;