-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
Anchor
into a consistent GlobWalker
.
`Anchor` was previously exposed in public APIs so that client code could query roots and prefixes. However, this type and its usage in `walk` APIs was disjoint, allowing an `Anchor` constructed from one `Glob` to be used to construct an iterator using a different `Glob`. Instead, this change exposes an intermediate `GlobWalker`, which provides `walk` APIs as well as accessors to query the root and prefix of a walk pattern in the specified path. Most users can likely ignore this type, but it can be used if and when this information is needed.
- Loading branch information
1 parent
f3df644
commit fb8a995
Showing
2 changed files
with
102 additions
and
89 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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