Skip to content

Commit fa95a85

Browse files
Use canonical paths for status command
1 parent ff9036a commit fa95a85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tree-sitter-stack-graphs/src/cli/status.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ impl StatusArgs {
5151
self.status(&mut entries)?;
5252
} else {
5353
for source_path in &self.source_paths {
54+
let source_path = source_path.canonicalize()?;
5455
let mut files = db.list_file_or_directory(&source_path)?;
5556
let mut entries = files.try_iter()?;
5657
self.status(&mut entries)?;

0 commit comments

Comments
 (0)