rhgitaly::git::PathSpec, with literal and wildcard implementations
This will be useful in `LastCommitForPath` or anything where Git path specifications are expected. This is probably very clumsy, due to the painful reimplementation of `fnmatch` but at this point, it passes the Comparison Tests. Included unit tests are available for potential later refactorings. In particular, this was done to match the Python implementation, in which it was assumed that using `fnmatch` as much as possible was the way to go, because of the potential it has to have a native implementation, hence being infinitely fast compared to looping in Python. This is the justification for the full splitting at forward slashes, which is probably unnecessary in Rust.
parent
e115efcfd14f
No related branches found
No related tags found
Loading
Please register or sign in to comment