//! The vcs command-line tool. /// The release version (set by the release build), or the crate's. pub const VERSION: &str = match option_env!("VCS_VERSION") { Some(v) => v, None => env!("CARGO_PKG_VERSION"), }; pub mod access; pub mod app; pub mod bridge; pub mod cmd; pub mod db; pub mod gc; pub mod host; pub mod history; pub mod ids; pub mod objects; pub mod out; pub mod paths; pub mod remote; pub mod saver; pub mod secrets; pub mod signin; pub mod sys; pub mod tags; pub mod wire; pub mod workspaces; pub mod ws; /// Whether `path` is covered by a rule written for `rule` (a file or folder). pub fn path_matches(path: &str, rule: &str) -> bool { vcs_core::tree::under(path, rule.trim_matches('/')) }