Refactor file operation commands' handling of repo and channel

dblsaiko
Mar 30, 2024, 8:18 PM
3WADZG36NTZ7RPXZIKYKQ77YOVIPXY277UQ2FD5MSOJRKUYKVXJQC

Dependencies

  • [2] GKSVBEUW Refactor Repository constructors to take Option<&Path> instead of Option<PathBuf>
  • [3] A3RM526Y Integrating identity malleability
  • [4] 4H2XTVJ2 Fix some mistakes in the docs
  • [5] PIQCNEEB Upgrading to Clap 3.0.0-alpha.5
  • [6] AEPEFS7O Write help for each argument
  • [7] LBVUI6AX Rename `ls` command to `list`
  • [8] KWAMD2KR A few fixes in the documentation comments
  • [9] EUZFFJSO Updating Pijul with the latest changes in Libpijul
  • [10] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [11] W5HHTRPK Rename the `mv` command to `move`
  • [12] JL4WKA5P Implement the Sanakirja concurrency model in a cross-process way
  • [13] RG4YZPKL file_operations: remove the counter-intuitive --repository options
  • [14] YN63NUZO Sanakirja 1.0
  • [15] RUBBHYZ7 Removing unnecessary async/await
  • [16] ZBNKSYA6 Fixing a bus error when starting a transaction on a full disk
  • [17] I24UEJQL Various post-fire fixes
  • [18] EEOOHGQQ More atomic "file moves+transaction"
  • [*] ABQDWHNG Migrate from `pijul::repository` to `pijul-repository`
  • [*] 6ZHY3XTG Updating deprecated methods in clap
  • [*] 4OCC6D42 Recursive add

Change contents

  • edit in pijul/src/commands/file_operations.rs at line 9
    [3.169209]
    [20.1845]
    use crate::commands::common_opts::RepoPath;
  • edit in pijul/src/commands/file_operations.rs at line 14
    [3.96]
    [21.269]
    #[clap(flatten)]
    base: RepoPath,
  • replacement in pijul/src/commands/file_operations.rs at line 28
    [3.1983][3.0:49](),[3.14796][3.0:49]()
    let repo = Repository::find_root(None)?;
    [3.1983]
    [3.169474]
    let repo = Repository::find_root(self.base.repo_path())?;
  • replacement in pijul/src/commands/file_operations.rs at line 92
    [3.88][3.2262:2412](),[3.170782][3.2262:2412](),[3.2412][3.170782:170847](),[3.2731][3.170782:170847](),[3.3938][3.170782:170847](),[3.170782][3.170782:170847]()
    /// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory.
    #[clap(long = "repository")]
    repo_path: Option<PathBuf>,
    [3.88]
    [3.170847]
    #[clap(flatten)]
    base: RepoPath,
  • replacement in pijul/src/commands/file_operations.rs at line 98
    [3.2036][2.2183:2253]()
    let repo = Repository::find_root(self.repo_path.as_deref())?;
    [3.2036]
    [3.170979]
    let repo = Repository::find_root(self.base.repo_path())?;
  • edit in pijul/src/commands/file_operations.rs at line 118
    [3.171231]
    [22.0]
    #[clap(flatten)]
    base: RepoPath,
  • replacement in pijul/src/commands/file_operations.rs at line 132
    [3.2089][3.356:405](),[3.15113][3.356:405]()
    let repo = Repository::find_root(None)?;
    [3.2089]
    [3.15880]
    let repo = Repository::find_root(self.base.repo_path())?;
  • edit in pijul/src/commands/file_operations.rs at line 204
    [3.172507]
    [3.4089]
    #[clap(flatten)]
    base: RepoPath,
  • replacement in pijul/src/commands/file_operations.rs at line 212
    [3.2142][3.406:455](),[3.15285][3.406:455]()
    let repo = Repository::find_root(None)?;
    [3.2142]
    [3.732]
    let repo = Repository::find_root(self.base.repo_path())?;