-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optionally follow symlinks when specifying input files #851
Conversation
|
3 similar comments
|
|
|
6ac8dee
to
8cf93f9
Compare
|
If you use `if cfg!(unix) ...` then, while the Unix branch in Windows is unreachable, the linter still complains that Metadata.nlink isn't a valid method.
If the traversed file is not a directory (symlinked or otherwise), _only_ handle it if it's a regular file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for the small remark. Thanks @Xophmeister!
Optionally follow (and resolve) symlinks when specifying input files
Resolves #834
Description
Provides an
-L
/--follow-symlinks
option totopiary format
which will follow and resolve symlinks when computing the set of input files. If this CLI option is specified, then the filesystem traversal:The deduplication now happens after the traversal, rather than before, to dedup symlinks that point to files that exist within the input file set. (This means that if you do, say,
topiary format directory directory
, then it will do twice as much work before dedup'ing, but that's an edge case that's not worth worrying about.)Checklist
Checklist before merging: