Refactor file operation commands' handling of repo and channel
Dependencies
- [2]
GKSVBEUWRefactor Repository constructors to take Option<&Path> instead of Option<PathBuf> - [3]
A3RM526YIntegrating identity malleability - [4]
4H2XTVJ2Fix some mistakes in the docs - [5]
PIQCNEEBUpgrading to Clap 3.0.0-alpha.5 - [6]
AEPEFS7OWrite help for each argument - [7]
LBVUI6AXRename `ls` command to `list` - [8]
KWAMD2KRA few fixes in the documentation comments - [9]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul - [10]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [11]
W5HHTRPKRename the `mv` command to `move` - [12]
JL4WKA5PImplement the Sanakirja concurrency model in a cross-process way - [13]
RG4YZPKLfile_operations: remove the counter-intuitive --repository options - [14]
YN63NUZOSanakirja 1.0 - [15]
RUBBHYZ7Removing unnecessary async/await - [16]
ZBNKSYA6Fixing a bus error when starting a transaction on a full disk - [17]
I24UEJQLVarious post-fire fixes - [18]
EEOOHGQQMore atomic "file moves+transaction" - [*]
ABQDWHNGMigrate from `pijul::repository` to `pijul-repository` - [*]
6ZHY3XTGUpdating deprecated methods in clap - [*]
4OCC6D42Recursive add
Change contents
- edit in pijul/src/commands/file_operations.rs at line 9
use crate::commands::common_opts::RepoPath; - edit in pijul/src/commands/file_operations.rs at line 14
#[clap(flatten)]base: RepoPath, - replacement in pijul/src/commands/file_operations.rs at line 28
let repo = Repository::find_root(None)?;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>,#[clap(flatten)]base: RepoPath, - replacement in pijul/src/commands/file_operations.rs at line 98
let repo = Repository::find_root(self.repo_path.as_deref())?;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
let repo = Repository::find_root(None)?;let repo = Repository::find_root(self.base.repo_path())?; - edit in pijul/src/commands/file_operations.rs at line 204
#[clap(flatten)]base: RepoPath, - replacement in pijul/src/commands/file_operations.rs at line 212
let repo = Repository::find_root(None)?;let repo = Repository::find_root(self.base.repo_path())?;