♻️ Refactor diff command's handling of repo and channel
Dependencies
- [2]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [3]
KWAMD2KRA few fixes in the documentation comments - [4]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul - [5]
V6J6DTJCDo not compute the entire diff if all we want is --json --untracked - [6]
Y2Y4OOIEMove `pijul::DEFAULT_CHANNEL` to `libpijul` - [7]
S4ZDDHTLRefactor diff command's handling of repo and channel - [8]
ABQDWHNGMigrate from `pijul::repository` to `pijul-repository` - [9]
J33DKFPMDo not traverse unindexed directories in `pijul diff -su` - [10]
PIQCNEEBUpgrading to Clap 3.0.0-alpha.5 - [11]
5OGOE4VWStore the current channel in the pristine - [12]
L4JXJHWXpijul/*: reorganize imports and remove extern crate
Change contents
- replacement in pijul/src/commands/diff.rs at line 11
use crate::commands::common_opts::RepoPath;use crate::commands::common_opts::RepoAndChannel; - replacement in pijul/src/commands/diff.rs at line 18
pub base: RepoPath,pub base: RepoAndChannel, - edit in pijul/src/commands/diff.rs at line 22[2.173896]→[7.146:206](∅→∅),[7.206]→[2.173896:173959](∅→∅),[3.2984]→[2.173896:173959](∅→∅),[2.173896]→[2.173896:173959](∅→∅)
/// Compare with CHANNEL instead of the current channel#[clap(long = "channel")]pub channel: Option<String>, - replacement in pijul/src/commands/diff.rs at line 53[5.306]→[7.274:362](∅→∅),[7.362]→[4.16170:16196](∅→∅),[6.965]→[4.16170:16196](∅→∅),[4.16170]→[4.16170:16196](∅→∅)
let channel = get_channel(self.channel.as_deref(), &*txn.read()).0.to_string();let channel = get_channel(self.base.channel(), &*txn.read()).0.to_string();