Add missing imports
This commit is contained in:
parent
7f02f818da
commit
da0c4cf06b
4 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
use toml::Value;
|
||||||
|
|
||||||
|
use vcs::git::action::StoreAction;
|
||||||
|
|
||||||
pub fn commit_interactive(config: &Value) -> bool {
|
pub fn commit_interactive(config: &Value) -> bool {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,4 +6,5 @@ generate_error_module!(
|
||||||
|
|
||||||
pub use self::error::GitHookError;
|
pub use self::error::GitHookError;
|
||||||
pub use self::error::GitHookErrorKind;
|
pub use self::error::GitHookErrorKind;
|
||||||
|
pub use self::error::MapErrInto;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
mod action;
|
||||||
mod config;
|
mod config;
|
||||||
pub mod create;
|
pub mod create;
|
||||||
pub mod delete;
|
pub mod delete;
|
||||||
|
|
|
@ -3,9 +3,13 @@
|
||||||
//! Contains primitives to create a repository within the store path
|
//! Contains primitives to create a repository within the store path
|
||||||
|
|
||||||
use git2::Repository;
|
use git2::Repository;
|
||||||
|
use git2::RepositoryInitOptions;
|
||||||
|
|
||||||
|
use libimagstore::store::Store;
|
||||||
|
|
||||||
use vcs::git::error::GitHookErrorKind as GHEK;
|
use vcs::git::error::GitHookErrorKind as GHEK;
|
||||||
use vcs::git::error::MapErrInto;
|
use vcs::git::error::MapErrInto;
|
||||||
|
use vcs::git::result::Result;
|
||||||
|
|
||||||
pub fn mkrepo(store: &Store) -> Result<()> {
|
pub fn mkrepo(store: &Store) -> Result<()> {
|
||||||
let mut opts = RepositoryInitOptions::new();
|
let mut opts = RepositoryInitOptions::new();
|
||||||
|
|
Loading…
Reference in a new issue