Removing the `Direction` argument in pijul::remote::Repository::remote

pmeunier
Feb 22, 2023, 5:23 PM
YWL2K3P74UMGTJEOBZE5VB6J4ZOM5BDMMQHE5KZJCC3IKHRTVKXQC

Dependencies

  • [2] 4KJ45IJL Implement new identity management
  • [3] H4AU6QRP New config for HTTP remotes
  • [4] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [5] ZSFJT4SF Allow remotes to have a different push and pull address
  • [6] 2D7P2VKJ Change completions (where the whole progress bar story started)
  • [7] FVQYZQFL Create dialoguer themes based on global config
  • [8] 4OJWMSOW Fully replace crate::Identity
  • [9] L4JXJHWX pijul/*: reorganize imports and remove extern crate
  • [10] 76PCXGML Pushing to, and pulling from the local repository

Change contents

  • edit in pijul/src/remote/mod.rs at line 49
    [4.53074][4.23:53]()
    direction: Direction,
  • edit in pijul/src/remote/mod.rs at line 54
    [3.152][3.152:182](),[3.182][4.82:248](),[4.82][4.82:248](),[4.248][3.183:204]()
    /*unknown_remote(
    self_path,
    name.with_dir(direction),
    channel,
    no_cert_check,
    with_path,
    )
    .await*/
  • edit in pijul/src/identity/create.rs at line 4
    [2.28261][2.28261:28291]()
    use crate::config::Direction;
  • edit in pijul/src/identity/create.rs at line 310
    [2.37505][2.37505:37542]()
    Direction::Pull,
  • edit in pijul/src/config.rs at line 176
    [3.4262][3.4262:4336]()
    }
    #[derive(Clone, Copy, Debug)]
    pub enum Direction {
    Push,
    Pull,
  • edit in pijul/src/commands/pushpull.rs at line 15
    [4.1761][4.2400:2430]()
    use crate::config::Direction;
  • edit in pijul/src/commands/pushpull.rs at line 212
    [4.4447][4.2431:2464]()
    Direction::Push,
  • edit in pijul/src/commands/pushpull.rs at line 396
    [4.6071][4.2465:2498]()
    Direction::Pull,