2015-08-25 17:29:23 +00:00
|
|
|
pub mod xattr;
|
2015-03-26 00:37:12 +00:00
|
|
|
|
2017-08-28 17:11:38 +00:00
|
|
|
#[cfg(feature="git")] pub mod git;
|
2015-06-08 20:33:39 +00:00
|
|
|
|
2015-03-26 00:37:12 +00:00
|
|
|
#[cfg(not(feature="git"))]
|
2017-08-28 17:11:38 +00:00
|
|
|
pub mod git {
|
|
|
|
use std::iter::FromIterator;
|
|
|
|
use std::path::{Path, PathBuf};
|
|
|
|
|
2018-12-08 00:01:39 +00:00
|
|
|
use crate::fs::fields as f;
|
2017-08-28 17:11:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
pub struct GitCache;
|
|
|
|
|
|
|
|
impl FromIterator<PathBuf> for GitCache {
|
|
|
|
fn from_iter<I: IntoIterator<Item=PathBuf>>(_iter: I) -> Self {
|
|
|
|
GitCache
|
|
|
|
}
|
2015-03-26 00:37:12 +00:00
|
|
|
}
|
|
|
|
|
2017-08-28 17:11:38 +00:00
|
|
|
impl GitCache {
|
2017-09-14 10:33:24 +00:00
|
|
|
pub fn has_anything_for(&self, _index: &Path) -> bool {
|
|
|
|
false
|
2017-08-28 17:11:38 +00:00
|
|
|
}
|
|
|
|
|
2017-09-14 10:33:24 +00:00
|
|
|
pub fn get(&self, _index: &Path, _prefix_lookup: bool) -> f::Git {
|
|
|
|
panic!("Tried to query a Git cache, but Git support is disabled")
|
2017-08-28 17:11:38 +00:00
|
|
|
}
|
2015-03-26 00:37:12 +00:00
|
|
|
}
|
|
|
|
}
|