Migrate from `pijul::current_dir` to `std::env::current_dir`
Dependencies
- [2]
4RV7T4SRMigrate from `pijul::config` to `pijul-config` - [3]
PIQCNEEBUpgrading to Clap 3.0.0-alpha.5 - [4]
6ZHY3XTGUpdating deprecated methods in clap - [5]
LZOGKBJXnew command `pijul client` for authenticating to a HTTP server - [6]
GJNJ75U5Canonicalise paths (reset and credit) before stripping off the prefix - [7]
TI7PCK7JUpdate `pijul/src/main.rs` to use new identity management - [8]
YN63NUZOSanakirja 1.0 - [9]
SNZ3OAMCuse native external subcommand support instead of hand-rolled one - [10]
VO5OQW4WRemoving anyhow in libpijul - [11]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [12]
L4JXJHWXpijul/*: reorganize imports and remove extern crate - [13]
NLGQAH4HCredit and reset relative to current directory instead of the root - [14]
JL4WKA5PImplement the Sanakirja concurrency model in a cross-process way - [15]
Y7YAFMFFFix path prefix striping on Windows. - [16]
FMKKWCFVBetter clap attributes - [17]
EEBKW7VTKeys and identities - [18]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul - [19]
I24UEJQLVarious post-fire fixes - [20]
TEDGMEHFIntroduce subcommand for completion-script generation. - [21]
QL6K2ZM3Tags - [22]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump
Change contents
- edit in pijul/src/repository.rs at line 1
use std::env::current_dir; - edit in pijul/src/repository.rs at line 4
use crate::current_dir; - edit in pijul/src/main.rs at line 8
use std::path::PathBuf; - edit in pijul/src/main.rs at line 9
use anyhow::bail; - edit in pijul/src/main.rs at line 271[3.137]→[3.89705:89714](∅→∅),[3.687]→[3.89705:89714](∅→∅),[3.89705]→[3.89705:89714](∅→∅),[3.89714]→[3.11259:11441](∅→∅)
}}pub fn current_dir() -> Result<PathBuf, anyhow::Error> {if let Ok(cur) = std::env::current_dir() {Ok(cur)} else {bail!("Cannot access working directory") - replacement in pijul/src/commands/reset.rs at line 78
let mut root = crate::current_dir()?;let mut root = std::env::current_dir()?; - replacement in pijul/src/commands/credit.rs at line 48
let mut root = crate::current_dir()?;let mut root = std::env::current_dir()?;