Onset: version control where nobody waits and nothing gets lost. The on command, its core and onset-server.
| 5 | Some(v) => v, |
| 6 | None => env!("CARGO_PKG_VERSION"), |
| 7 | }; |
| 8 |
| 9 | pub mod access; |
| 10 | pub mod app; |
| 11 | pub mod bridge; |
| 12 | pub mod cmd; |
| 13 | pub mod db; |
| 14 | pub mod gc; |
| 15 | pub mod host; |
| 16 | pub mod history; |
| 17 | pub mod ids; |
| 18 | pub mod keys; |
| 19 | pub mod objects; |
| 20 | pub mod out; |
| 21 | pub mod paths; |
| 22 | pub mod remote; |
| 23 | pub mod saver; |
| 24 | pub mod secrets; |
| 25 | pub mod signin; |
| 26 | pub mod sys; |
| 27 | pub mod tags; |
| 28 | pub mod wire; |
| 29 | pub mod workspaces; |
| 30 | pub mod ws; |
| 31 |
| 32 | /// Whether `path` is covered by a rule written for `rule` (a file or folder). |
| 33 | pub fn path_matches(path: &str, rule: &str) -> bool { |
| 34 | vcs_core::tree::under(path, rule.trim_matches('/')) |
| 35 | } |
| 36 |