mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
fix: diff: Add local: to path syntax (#1000)
This commit is contained in:
parent
3959bc7a1b
commit
75482c65f6
@ -133,6 +133,7 @@ impl DiffCmd {
|
||||
/// A tuple of the snapshot id and the path
|
||||
fn arg_to_snap_path<'a>(arg: &'a str, default_path: &'a str) -> (Option<&'a str>, &'a str) {
|
||||
match arg.split_once(':') {
|
||||
Some(("local", path)) => (None, path),
|
||||
Some((id, path)) => (Some(id), path),
|
||||
None => {
|
||||
if arg.contains('/') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user