run_git/lib.rs
1pub mod base_and_rel_path;
2pub mod command;
3pub mod flattened;
4pub mod git;
5pub mod path_util;
6pub mod util;
7
8/// In situation requiring an array or slice with a generic type for
9/// the items, passing the empty array or slice is a bit cumbersome,
10/// e.g. `&[] as &[&str]`. This macro may or may not make this nicer.
11#[macro_export]
12macro_rules! empty {
13 [$T:ty] => {
14 {&[] as &[$T]}
15 }
16}