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to the first ancestor of the current directory that contains a `.pijul` directory.
#[clap(long = "repository", value_hint = ValueHint::DirPath)]
repo_path: Option<PathBuf>,
/// Apply change to this channel
#[clap(long = "channel")]
channel: Option<String>,
#[clap(flatten)]
base: RepoAndChannel,
let cur = txn
.read()
.current_channel()
.unwrap_or(libpijul::DEFAULT_CHANNEL)
.to_string();
let channel_name = if let Some(ref c) = self.channel {
c
} else {
cur.as_str()
};
let is_current_channel = channel_name == cur;
let channel = if let Some(channel) = txn.read().load_channel(&channel_name)? {
channel
} else {
bail!("Channel {:?} not found", channel_name)
};
let (channel, is_current_channel) = load_channel(self.base.channel(), &*txn.read())?;