Removing --channel from the changes command
[?]
Nov 23, 2020, 11:12 AM
Q4SVMHAEZQQCBFGPJMWS5H4VXB2HFQREZ3AWGOHFWHLFARUQVPBACDependencies
- [2]
L4JXJHWXpijul/*: reorganize imports and remove extern crate - [3]
VQPAUKBQchannel switch as an alias to reset - [4]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- replacement in pijul/src/commands/channel.rs at line 3
use clap::Clap;use clap::{AppSettings, Clap}; - edit in pijul/src/commands/channel.rs at line 9
#[clap(setting(AppSettings::ColoredHelp))] - edit in pijul/src/commands/channel.rs at line 19
/// Delete a channel./// The channel must not be the current channel. - edit in pijul/src/commands/channel.rs at line 23
/// Rename a channel. - edit in pijul/src/commands/channel.rs at line 26
/// Switch to a channel./// There must not be unrecorded changes in the working copy. - edit in pijul/src/commands/change.rs at line 14
#[clap(long = "channel")]channel: Option<String>, - replacement in pijul/src/commands/change.rs at line 21
let channel_name = repo.config.get_current_channel(self.channel.as_ref());let channel_name = repo.config.get_current_channel(None); - edit in pijul/src/commands/change.rs at line 32
- replacement in pijul/src/commands/change.rs at line 33
let file_name = |l: &Local, inode: Position<Option<Hash>>| -> String {if txn.get_revchanges(&channel, hash).is_some() {let inode = Position {change: inode.change.unwrap_or(hash),pos: inode.pos,};format!("{}:{}",txn.find_youngest_path(&changes, &channel, inode).unwrap().0,l.line)} else {format!("{}:{}", l.path, l.line)}};let file_name = |l: &Local, _| format!("{}:{}", l.path, l.line);