pub struct GitIntegration { /* private fields */ }Implementations§
Source§impl GitIntegration
impl GitIntegration
pub fn new(repo_root: &Path) -> Self
pub fn diff_files(&self, base: &str, head: &str) -> Result<Vec<GitChange>>
pub fn log(&self, since: &str, max_count: u32) -> Result<Vec<GitCommit>>
pub fn blame(&self, path: &str) -> Result<Vec<GitBlameLine>>
pub fn changed_files_since(&self, base: &str) -> Result<Vec<String>>
pub fn churn_since(&self, since: &str) -> Result<HashMap<String, u32>>
pub fn file_owner(&self, path: &str) -> Result<String>
pub fn is_git_repo(&self) -> bool
Auto Trait Implementations§
impl Freeze for GitIntegration
impl RefUnwindSafe for GitIntegration
impl Send for GitIntegration
impl Sync for GitIntegration
impl Unpin for GitIntegration
impl UnsafeUnpin for GitIntegration
impl UnwindSafe for GitIntegration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more