From 931845105bc8f810657774adbf47546b125947be Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 7 Sep 2016 22:08:27 +0200 Subject: [PATCH 1/5] runtime: Remove unused import Signature --- libimagstorestdhook/src/vcs/git/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagstorestdhook/src/vcs/git/runtime.rs b/libimagstorestdhook/src/vcs/git/runtime.rs index 13902b7d..7cefc9bf 100644 --- a/libimagstorestdhook/src/vcs/git/runtime.rs +++ b/libimagstorestdhook/src/vcs/git/runtime.rs @@ -1,6 +1,6 @@ use std::path::PathBuf; -use git2::{Repository, Signature}; +use git2::Repository; use toml::Value; use libimagerror::into::IntoError; From 7f4108ad8567e64e7d67d23e53ed9f75f1cce093 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 10 Sep 2016 17:11:45 +0200 Subject: [PATCH 2/5] Remove unused imports: create hook --- libimagstorestdhook/src/vcs/git/create.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libimagstorestdhook/src/vcs/git/create.rs b/libimagstorestdhook/src/vcs/git/create.rs index 335bf2a6..431fbd36 100644 --- a/libimagstorestdhook/src/vcs/git/create.rs +++ b/libimagstorestdhook/src/vcs/git/create.rs @@ -1,30 +1,17 @@ use std::path::PathBuf; -use std::path::Path; use std::fmt::{Debug, Formatter, Error as FmtError}; use std::result::Result as RResult; use toml::Value; -use git2::{Reference as GitReference, Repository, Error as Git2Error}; -use git2::{ADD_DEFAULT, STATUS_WT_NEW, STATUS_WT_MODIFIED, IndexMatchedPath}; use libimagstore::storeid::StoreId; use libimagstore::hook::Hook; -use libimagstore::hook::error::HookError as HE; -use libimagstore::hook::error::HookErrorKind as HEK; -use libimagstore::hook::error::CustomData as HECD; use libimagstore::hook::result::HookResult; use libimagstore::hook::position::HookPosition; use libimagstore::hook::accessor::{HookDataAccessor, HookDataAccessorProvider}; use libimagstore::hook::accessor::StoreIdAccessor; use libimagerror::trace::trace_error; -use libimagerror::into::IntoError; -use libimagutil::debug_result::*; -use vcs::git::result::Result; -use vcs::git::error::MapIntoHookError; -use vcs::git::error::MapErrInto; -use vcs::git::error::GitHookErrorKind as GHEK; -use vcs::git::error::GitHookError as GHE; use vcs::git::runtime::Runtime as GRuntime; pub struct CreateHook { From 412c4b5a300d38207ef3399bbeb304e4f416dd24 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 10 Sep 2016 17:12:26 +0200 Subject: [PATCH 3/5] Remove unused import: config module --- libimagstorestdhook/src/vcs/git/config.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/libimagstorestdhook/src/vcs/git/config.rs b/libimagstorestdhook/src/vcs/git/config.rs index 95e09a42..d4ae10f7 100644 --- a/libimagstorestdhook/src/vcs/git/config.rs +++ b/libimagstorestdhook/src/vcs/git/config.rs @@ -1,7 +1,6 @@ use toml::Value; use libimagerror::into::IntoError; -use libimagutil::edit::edit_in_tmpfile_with_command; use vcs::git::error::GitHookErrorKind as GHEK; use vcs::git::error::MapErrInto; From 3cf6cc4506bb29850b135c065e1e0b371352c54a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 10 Sep 2016 17:13:35 +0200 Subject: [PATCH 4/5] Remove unused imports: Update hook --- libimagstorestdhook/src/vcs/git/update.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libimagstorestdhook/src/vcs/git/update.rs b/libimagstorestdhook/src/vcs/git/update.rs index 2dce8ab2..1679e05b 100644 --- a/libimagstorestdhook/src/vcs/git/update.rs +++ b/libimagstorestdhook/src/vcs/git/update.rs @@ -5,23 +5,17 @@ use std::result::Result as RResult; use toml::Value; -use libimagerror::into::IntoError; use libimagerror::trace::trace_error; use libimagstore::hook::Hook; use libimagstore::hook::accessor::StoreIdAccessor; use libimagstore::hook::accessor::{HookDataAccessor, HookDataAccessorProvider}; -use libimagstore::hook::error::HookError as HE; -use libimagstore::hook::error::HookErrorKind as HEK; use libimagstore::hook::position::HookPosition; use libimagstore::hook::result::HookResult; use libimagstore::storeid::StoreId; use libimagutil::debug_result::*; -use vcs::git::error::GitHookError as GHE; use vcs::git::error::GitHookErrorKind as GHEK; use vcs::git::error::MapErrInto; -use vcs::git::error::MapIntoHookError; -use vcs::git::result::Result; use vcs::git::runtime::Runtime as GRuntime; pub struct UpdateHook { @@ -89,7 +83,6 @@ impl StoreIdAccessor for UpdateHook { use vcs::git::config::commit_message; use vcs::git::error::MapIntoHookError; use vcs::git::util::fetch_index; - use git2::{Reference as GitReference, Repository, Error as Git2Error}; use git2::{ADD_DEFAULT, STATUS_WT_NEW, STATUS_WT_MODIFIED, IndexMatchedPath}; debug!("[GIT UPDATE HOOK]: {:?}", id); From b1af5dc1d59d948ace17beee9fbcbe72da128276 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 10 Sep 2016 17:13:54 +0200 Subject: [PATCH 5/5] Remove unused imports: util module --- libimagstorestdhook/src/vcs/git/util.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/libimagstorestdhook/src/vcs/git/util.rs b/libimagstorestdhook/src/vcs/git/util.rs index 56b66323..1e1dd03d 100644 --- a/libimagstorestdhook/src/vcs/git/util.rs +++ b/libimagstorestdhook/src/vcs/git/util.rs @@ -6,7 +6,6 @@ use git2::{Repository, Index}; use vcs::git::error::GitHookErrorKind as GHEK; use vcs::git::error::MapErrInto; -use vcs::git::runtime::Runtime as GRuntime; use vcs::git::action::StoreAction; use vcs::git::error::MapIntoHookError;