pijul channel rename arguments named after their purpose This makes it so that calling `pijul channel rename something` will be reflected as providing the "to" argument, not the "from" argument. The help output also shows the "from" argument being optional, rather than "to" being optional which did not match the way the rename worked.

benaryorg
May 30, 2025, 3:48 PM
QUMQPF6LCBCFAWQ262UYGIWF53YTAUWEGMWKVL22GSLVJ5HWJDFQC

Dependencies

  • [2] 5OGOE4VW Store the current channel in the pristine
  • [3] JA4POQAL Refactor channel command's handling of repo and channel
  • [4] ZBNKSYA6 Fixing a bus error when starting a transaction on a full disk
  • [5] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [6] Q4SVMHAE Removing --channel from the changes command
  • [7] GKSVBEUW Refactor Repository constructors to take Option<&Path> instead of Option<PathBuf>
  • [8] A3RM526Y Integrating identity malleability
  • [9] VQPAUKBQ channel switch as an alias to reset

Change contents

  • replacement in pijul/src/commands/channel.rs at line 27
    [3.182][3.187287:187316](),[3.187287][3.187287:187316](),[3.187316][3.187316:187365]()
    #[clap(name = "rename")]
    Rename { from: String, to: Option<String> },
    [3.182]
    [3.183]
    #[clap(name = "rename", allow_missing_positional = true)]
    Rename { from: Option<String>, to: String },
  • replacement in pijul/src/commands/channel.rs at line 92
    [3.1022][3.188517:188573](),[2.4170][3.188517:188573](),[3.188517][3.188517:188573]()
    let (from, to) = if let Some(to) = to {
    [2.4170]
    [3.188573]
    let (from, to) = if let Some(from) = from {
  • replacement in pijul/src/commands/channel.rs at line 95
    [3.188678][3.188678:188723]()
    (current, from.as_str())
    [3.188678]
    [3.188723]
    (current, to.as_str())