1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
pub mod git;
use crate::error::Error;
use std::path::Path;

pub trait VCS {
    fn sections<P>(&self, repo_path: P) -> Result<Vec<Section>, Error>
    where
        P: AsRef<Path>;
}

#[derive(Debug, PartialEq, Clone)]
pub struct Section {
    pub file_name: String,
    pub line_start: u32,
    pub line_end: u32,
}