diff --git a/libimagstorestdhook/src/vcs/git/config.rs b/libimagstorestdhook/src/vcs/git/config.rs index 0269782b..839a57d6 100644 --- a/libimagstorestdhook/src/vcs/git/config.rs +++ b/libimagstorestdhook/src/vcs/git/config.rs @@ -1,3 +1,7 @@ +use toml::Value; + +use vcs::git::action::StoreAction; + pub fn commit_interactive(config: &Value) -> bool { unimplemented!() } diff --git a/libimagstorestdhook/src/vcs/git/error.rs b/libimagstorestdhook/src/vcs/git/error.rs index fea5b793..f0851b1d 100644 --- a/libimagstorestdhook/src/vcs/git/error.rs +++ b/libimagstorestdhook/src/vcs/git/error.rs @@ -6,4 +6,5 @@ generate_error_module!( pub use self::error::GitHookError; pub use self::error::GitHookErrorKind; +pub use self::error::MapErrInto; diff --git a/libimagstorestdhook/src/vcs/git/mod.rs b/libimagstorestdhook/src/vcs/git/mod.rs index 1f068f4b..8eb16f34 100644 --- a/libimagstorestdhook/src/vcs/git/mod.rs +++ b/libimagstorestdhook/src/vcs/git/mod.rs @@ -1,3 +1,4 @@ +mod action; mod config; pub mod create; pub mod delete; diff --git a/libimagstorestdhook/src/vcs/git/util.rs b/libimagstorestdhook/src/vcs/git/util.rs index e94df0a3..e57e6acc 100644 --- a/libimagstorestdhook/src/vcs/git/util.rs +++ b/libimagstorestdhook/src/vcs/git/util.rs @@ -3,9 +3,13 @@ //! Contains primitives to create a repository within the store path use git2::Repository; +use git2::RepositoryInitOptions; + +use libimagstore::store::Store; use vcs::git::error::GitHookErrorKind as GHEK; use vcs::git::error::MapErrInto; +use vcs::git::result::Result; pub fn mkrepo(store: &Store) -> Result<()> { let mut opts = RepositoryInitOptions::new();