mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 07:33:10 +03:00
055cf342d9
Summary: `globset` supports multiple matching strategies, including literal prefix (backed by AhoCorasick), or regexp, etc. In theory patterns like `foo/**` (where `*` cannot match `/`) can use `foo` prefix strategy. However, the implementation detail of `globset` wouldn't accept it as a prefix. But `foo/*` (where `*` can match `/`) can be treated as a prefix. Transform the former pattern to the latter to hint `globset` to use the optimal strategies. Reviewed By: sfilipco Differential Revision: D18500298 fbshipit-source-id: 39e604d6157a919b75c392488b6d42375e518c16 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |