Skip to content

Commit

Permalink
fix: diff: Add local: to path syntax (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
aawsome authored Jan 11, 2024
1 parent 3959bc7 commit 75482c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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('/') {
Expand Down

0 comments on commit 75482c6

Please sign in to comment.