fix: diff: Add local: to path syntax (#1000)

This commit is contained in:
aawsome 2024-01-11 13:09:35 +01:00 committed by GitHub
parent 3959bc7a1b
commit 75482c65f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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('/') {