Using path-slash to fix path issues on Windows
[?]
Apr 30, 2021, 9:03 PM
V435QOJRFHNKW3NKJHMVMFOGO3KGAZVSURLSGFUHVKOMHMF4Q2ZQCDependencies
- [2]
5SLOJYHGFixing the Git feature - [3]
NLGQAH4HCredit and reset relative to current directory instead of the root - [4]
4VWXL6KQCorrect handling of ignore files - [5]
ZHABNS3SCanonicalize all paths - [6]
QMTANHVNReset: only output changed files - [7]
H565UUPCUse correct pattern for workspace interdependencies - [8]
4OCC6D42Recursive add - [9]
QYY37T6YFixing a panic with reset --dry-run and no input - [10]
OJZWJUF2MUCH faster `pijul add -r` - [11]
TPEH2XNB1.0.0-alpha.28, with Tokio 1.0 - [12]
GJNJ75U5Canonicalise paths (reset and credit) before stripping off the prefix - [13]
PP3E3TREDo not move source if destination is wrong - [14]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [15]
Y7YAFMFFFix path prefix striping on Windows. - [16]
EEOOHGQQMore atomic "file moves+transaction" - [17]
I24UEJQLVarious post-fire fixes - [18]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [*]
SN7AGY6SMaking `pijul lock` robust to kill signals - [*]
2K7JLB4ZNo pager on Windows
Change contents
- replacement in pijul/src/commands/reset.rs at line 60
let path = root.strip_prefix(&repo_path)?.to_str().unwrap();let path = root.strip_prefix(&repo_path)?;use path_slash::PathExt;let path = path.to_slash_lossy(); - replacement in pijul/src/commands/reset.rs at line 68
let path = root.strip_prefix(&repo_path)?.to_str().unwrap();let path = root.strip_prefix(&repo_path)?;use path_slash::PathExt;let path = path.to_slash_lossy(); - replacement in pijul/src/commands/reset.rs at line 219
let path = root.strip_prefix(&repo_path)?.to_str().unwrap();let path = root.strip_prefix(&repo_path)?;use path_slash::PathExt;let path = path.to_slash_lossy(); - edit in pijul/src/commands/git.rs at line 644
use path_slash::PathExt;let p = p.to_slash_lossy(); - replacement in pijul/src/commands/git.rs at line 647
txn_.add_dir(p.to_str().unwrap()).unwrap_or(());txn_.add_dir(&p).unwrap_or(()); - replacement in pijul/src/commands/git.rs at line 649
txn_.add_file(p.to_str().unwrap()).unwrap_or(());txn_.add_file(&p).unwrap_or(()); - edit in pijul/src/commands/file_operations.rs at line 58
use path_slash::PathExt;let source = source.to_slash_lossy(); - edit in pijul/src/commands/file_operations.rs at line 61
let target = target.to_slash_lossy(); - replacement in pijul/src/commands/file_operations.rs at line 63
txn.move_file(&source.to_string_lossy(), &target.to_string_lossy())?;txn.move_file(&source, &target)?; - replacement in pijul/src/commands/file_operations.rs at line 163
let path_str = path.to_str().unwrap();use path_slash::PathExt;let path_str = path.to_slash_lossy(); - replacement in pijul/src/commands/file_operations.rs at line 212
let path_str = path.to_str().unwrap();use path_slash::PathExt;let path_str = path.to_slash_lossy(); - edit in pijul/Cargo.toml at line 88[20.4207][21.309]
path-slash = "0.1" - replacement in libpijul/src/working_copy/filesystem.rs at line 209
let path_str = path.to_str().unwrap();match txn.add(path_str, is_dir) {use path_slash::PathExt;let path_str = path.to_slash_lossy();match txn.add(&path_str, is_dir) { - replacement in libpijul/Cargo.toml at line 88
ondisk-repos = [ "mmap", "zstd", "ignore", "canonical-path", "lru-cache", "tempfile" ]ondisk-repos = [ "mmap", "zstd", "ignore", "canonical-path", "lru-cache", "tempfile", "path-slash" ] - replacement in libpijul/Cargo.toml at line 127[3.3109]→[3.1023703:1023704](∅→∅),[3.138582]→[3.1023703:1023704](∅→∅),[3.1023703]→[3.1023703:1023704](∅→∅)
path-slash = { version = "0.1", optional = true }