Merge pull request #731 from matthiasbeyer/libimagstorestdhook/git-remove-unused-imports

libimagstorestdhook: gi hooks:t remove unused imports
This commit is contained in:
Matthias Beyer 2016-09-11 08:23:47 +02:00 committed by GitHub
commit 18c2d75390
5 changed files with 1 additions and 23 deletions

View file

@ -1,7 +1,6 @@
use toml::Value; use toml::Value;
use libimagerror::into::IntoError; use libimagerror::into::IntoError;
use libimagutil::edit::edit_in_tmpfile_with_command;
use vcs::git::error::GitHookErrorKind as GHEK; use vcs::git::error::GitHookErrorKind as GHEK;
use vcs::git::error::MapErrInto; use vcs::git::error::MapErrInto;

View file

@ -1,30 +1,17 @@
use std::path::PathBuf; use std::path::PathBuf;
use std::path::Path;
use std::fmt::{Debug, Formatter, Error as FmtError}; use std::fmt::{Debug, Formatter, Error as FmtError};
use std::result::Result as RResult; use std::result::Result as RResult;
use toml::Value; 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::storeid::StoreId;
use libimagstore::hook::Hook; 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::result::HookResult;
use libimagstore::hook::position::HookPosition; use libimagstore::hook::position::HookPosition;
use libimagstore::hook::accessor::{HookDataAccessor, HookDataAccessorProvider}; use libimagstore::hook::accessor::{HookDataAccessor, HookDataAccessorProvider};
use libimagstore::hook::accessor::StoreIdAccessor; use libimagstore::hook::accessor::StoreIdAccessor;
use libimagerror::trace::trace_error; 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; use vcs::git::runtime::Runtime as GRuntime;
pub struct CreateHook { pub struct CreateHook {

View file

@ -1,6 +1,6 @@
use std::path::PathBuf; use std::path::PathBuf;
use git2::{Repository, Signature}; use git2::Repository;
use toml::Value; use toml::Value;
use libimagerror::into::IntoError; use libimagerror::into::IntoError;

View file

@ -5,23 +5,17 @@ use std::result::Result as RResult;
use toml::Value; use toml::Value;
use libimagerror::into::IntoError;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;
use libimagstore::hook::Hook; use libimagstore::hook::Hook;
use libimagstore::hook::accessor::StoreIdAccessor; use libimagstore::hook::accessor::StoreIdAccessor;
use libimagstore::hook::accessor::{HookDataAccessor, HookDataAccessorProvider}; 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::position::HookPosition;
use libimagstore::hook::result::HookResult; use libimagstore::hook::result::HookResult;
use libimagstore::storeid::StoreId; use libimagstore::storeid::StoreId;
use libimagutil::debug_result::*; use libimagutil::debug_result::*;
use vcs::git::error::GitHookError as GHE;
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::error::MapIntoHookError;
use vcs::git::result::Result;
use vcs::git::runtime::Runtime as GRuntime; use vcs::git::runtime::Runtime as GRuntime;
pub struct UpdateHook { pub struct UpdateHook {
@ -89,7 +83,6 @@ impl StoreIdAccessor for UpdateHook {
use vcs::git::config::commit_message; use vcs::git::config::commit_message;
use vcs::git::error::MapIntoHookError; use vcs::git::error::MapIntoHookError;
use vcs::git::util::fetch_index; 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}; use git2::{ADD_DEFAULT, STATUS_WT_NEW, STATUS_WT_MODIFIED, IndexMatchedPath};
debug!("[GIT UPDATE HOOK]: {:?}", id); debug!("[GIT UPDATE HOOK]: {:?}", id);

View file

@ -6,7 +6,6 @@ use git2::{Repository, Index};
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::runtime::Runtime as GRuntime;
use vcs::git::action::StoreAction; use vcs::git::action::StoreAction;
use vcs::git::error::MapIntoHookError; use vcs::git::error::MapIntoHookError;