Skip to content
Snippets Groups Projects
Commit 7fa2d2d05635 authored by Georges Racinet's avatar Georges Racinet
Browse files

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
2 merge requests!255Merged stable branch into default,!252RHGitaly LastCommitForPath
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment