pub fn new<P>(path: P) -> Result<Self>
    where
        P: AsRef<Path>,
    {
        Ok(Self(git2::Repository::open(path)?))
    }
/// Create a `WatchedRepository` from a given path.
Create a `WatchedRepository` from a given path.
Create a ` WatchedRepository ` from a given path .
pub fn new<P>(path: P) -> Result<Self>
    where
        P: AsRef<Path>,
    {
        Ok(Self(git2::Repository::open(path)?))
    }
pub fn new < P > ( path : P ) -> Result < Self > where P : AsRef < Path > , { Ok ( Self ( git2 :: Repository :: open ( path ) ? ) ) }
Create a `WatchedRepository` from a given path.
Create a ` WatchedRepository ` from a given path .
path
P
path
P