diff options
Diffstat (limited to 'src/git.rs')
-rw-r--r-- | src/git.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,3 @@ -use crate::error::SiteError; use regex::Regex; use std::collections::HashMap; use std::path::{Path, PathBuf}; @@ -32,7 +31,7 @@ pub fn git(args: &[&str], cwd: &Path) -> Result<String, GitError> { } } -pub fn git_whatchanged(cwd: &Path) -> Result<HashMap<PathBuf, SystemTime>, SiteError> { +pub fn git_whatchanged(cwd: &Path) -> Result<HashMap<PathBuf, SystemTime>, GitError> { let mut files = HashMap::new(); if cwd.join(".git").is_dir() { let output = git(&["whatchanged", "--pretty=format:%ad", "--date=unix"], cwd)?; @@ -63,7 +62,7 @@ pub fn git_whatchanged(cwd: &Path) -> Result<HashMap<PathBuf, SystemTime>, SiteE Ok(files) } -pub fn git_dirty(cwd: &Path) -> Result<Vec<PathBuf>, SiteError> { +pub fn git_dirty(cwd: &Path) -> Result<Vec<PathBuf>, GitError> { let mut dirty = vec![]; if cwd.join(".git").is_dir() { let output = git(&["status", "--short"], cwd)?; |