Fix path prefix striping on Windows.
[?]
Dec 23, 2020, 5:19 PM
Y7YAFMFFJY3SQ3GYN3SS4V3FZWMH3B5L65AXQBXOR5XARSMF5JJQCDependencies
- [2]
GJNJ75U5Canonicalise paths (reset and credit) before stripping off the prefix - [3]
QYY37T6YFixing a panic with reset --dry-run and no input - [4]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [5]
MU5GSJAWPartial push and pull (WARNING: breaks the existing protocol) - [6]
NLGQAH4HCredit and reset relative to current directory instead of the root - [7]
KWAMD2KRA few fixes in the documentation comments - [8]
BZSC7VMYaddress clippy lints - [9]
AEPEFS7OWrite help for each argument - [10]
4H2XTVJ2Fix some mistakes in the docs - [*]
L4JXJHWXpijul/*: reorganize imports and remove extern crate
Change contents
- edit in pijul/src/commands/reset.rs at line 4[3.18][12.1314]
use canonical_path::CanonicalPathBuf; - edit in pijul/src/commands/reset.rs at line 41
let repo_path = CanonicalPathBuf::canonicalize(&repo.path)?; - replacement in pijul/src/commands/reset.rs at line 56
let path = root.strip_prefix(&repo.path)?.to_str().unwrap();let path = root.strip_prefix(&repo_path)?.to_str().unwrap(); - replacement in pijul/src/commands/reset.rs at line 62
let path = root.strip_prefix(&repo.path)?.to_str().unwrap();let path = root.strip_prefix(&repo_path)?.to_str().unwrap(); - replacement in pijul/src/commands/reset.rs at line 114
let path = root.strip_prefix(&repo.path)?.to_str().unwrap();let path = root.strip_prefix(&repo_path)?.to_str().unwrap(); - edit in pijul/src/commands/file_operations.rs at line 42
let repo_path = CanonicalPathBuf::canonicalize(&repo.path)?; - replacement in pijul/src/commands/file_operations.rs at line 51
let source = source.strip_prefix(&repo.path)?;let target = target.strip_prefix(&repo.path)?;let source = source.strip_prefix(&repo_path)?;let target = target.strip_prefix(&repo_path)?; - edit in pijul/src/commands/file_operations.rs at line 164
let repo_path = CanonicalPathBuf::canonicalize(&repo.path)?; - replacement in pijul/src/commands/file_operations.rs at line 177
let path = if let Ok(path) = path.strip_prefix(&repo.path) {let path = if let Ok(path) = path.strip_prefix(&repo_path.as_path()) { - edit in pijul/src/commands/credit.rs at line 4[12.2811][12.2811]
use canonical_path::CanonicalPathBuf; - edit in pijul/src/commands/credit.rs at line 43
let repo_path = CanonicalPathBuf::canonicalize(&repo.path)?; - replacement in pijul/src/commands/credit.rs at line 46
let path = root.strip_prefix(&repo.path)?.to_str().unwrap();let path = root.strip_prefix(&repo_path.as_path())?.to_str().unwrap(); - replacement in pijul/src/commands/credit.rs at line 52
let path = root.strip_prefix(&repo.path)?.to_str().unwrap();let path = root.strip_prefix(&repo_path.as_path())?.to_str().unwrap();