Onset: version control where nobody waits and nothing gets lost. The on command, its core and onset-server.
| 5 | pub mod cmd; |
| 6 | pub mod db; |
| 7 | pub mod host; |
| 8 | pub mod ids; |
| 9 | pub mod objects; |
| 10 | pub mod out; |
| 11 | pub mod paths; |
| 12 | pub mod remote; |
| 13 | pub mod secrets; |
| 14 | pub mod ws; |
| 15 |
| 16 | /// Whether `path` is covered by a rule written for `rule` (a file or folder). |
| 17 | pub fn path_matches(path: &str, rule: &str) -> bool { |
| 18 | vcs_core::tree::under(path, rule.trim_matches('/')) |
| 19 | } |
| 20 |