Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1951
--longno longer conflicts with--json. With both, each entry is an object with its path, the node's type and its metadata, using the same field names as the nodes ofcat tree:[ {"path":"data/dir","type":"dir","mode":2147484141,"mtime":"2026-10-15T22:48:28.543472128+02:00","atime":"…","ctime":"…","uid":1000,"gid":1000,"user":"jack","group":"jack","inode":11408871}, {"path":"data/dir/file.txt","type":"file","mode":420,"mtime":"2026-10-15T22:48:28.543472128+02:00","atime":"…","ctime":"…","uid":1000,"gid":1000,"user":"jack","group":"jack","inode":11408872,"size":6,"links":1} ]--jsonalone is unchanged (an array of paths), so existing users aren't affected.name(it's inpath),content(the data blob ids, one per chunk, large for big files) andsubtreeare left out.modeis the raw value as stored, like incat tree; for directories it includes the directory bit.typeandmode.Tests
test_ls_json_long_has_metadata(intests/backup_restore.rs) backs up, runsls --json --long latestand checks that every entry has a path and a type, and every file anmtimeand asize.