K34KD3FTTP3GD7TBEMLPOA2ZCBDTAMSW53RDIN4WRGZD2AAMLEMAC
MYB5C3FPOYHHUNHDYPDWMJ6DIMJTKG6AKZMXMJYHU3KYL3LINRBQC
GKSVBEUW7Q2M4QPKPHOUPGP36AMXMJVGX7KCSNYXEFQZOURGBSMQC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
E3DD265TSU5HFAAUYOIYFK5D3GYSPIJSWDVSQX5Q226WPCH43EFQC
L4JXJHWXYNCL4QGJXNKKTOKKTAXKKXBJUUY7HFZGEUZ5A2V5H34QC
ABQDWHNGSBF2REQDCGXSBFAU4RUMXYAF2KHJ5O3D32M7Z3A3FEDAC
KWAMD2KR5UYRHHPZWL7GY2KQKNXNVS4BYBVK3FXDI23NQMWA3U4QC
QQS7LII4MKQWKPYJXSZVOKLZ2ZSWQOMHHE6T22DJ4CL5I6YRGJLQC
RUBBHYZ7MCLKJIHZ3EWEC3JR3FSKOU4T2NH7KRBG7ECAU4JF3LUAC
5OGOE4VWS5AIG4U2UYLLIGA3HY6UB7SNQOSESHNXBLET3VQXFBZAC
EUZFFJSOWV4PXDFFPDAFBHFUUMOFEU6ST7JH57YYRRR2SEOXLN6QC
/// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory.
#[clap(long = "repository", value_hint = ValueHint::DirPath)]
repo_path: Option<PathBuf>,
#[clap(flatten)]
base: RepoPath,
let mut fork = if let Some(ref channel_name) = self.channel {
if let Some(channel) = txn.load_channel(channel_name)? {
txn.fork(&channel, &self.to)?
} else {
anyhow::bail!("Channel not found: {:?}", channel_name);
}
} else {
let cur = txn
.current_channel()
.unwrap_or(libpijul::DEFAULT_CHANNEL)
.to_string();
if let Some(channel) = txn.load_channel(&cur)? {
txn.fork(&channel, &self.to)?
} else {
anyhow::bail!("Channel not found: {:?}", cur);
}
};
let (channel, _) = load_channel(self.channel.as_deref(), &txn)?;
let mut fork = txn.fork(&channel, &self.to)?;