factor out more ssh stuff from git remote
This has the dual benefits of making Remote.Git shorter, and letting Remote.GCrypt use these utilities.
This commit is contained in:
parent
c869005231
commit
f9e438c1bc
5 changed files with 130 additions and 96 deletions
17
Remote/Helper/Messages.hs
Normal file
17
Remote/Helper/Messages.hs
Normal file
|
@ -0,0 +1,17 @@
|
|||
{- git-annex remote messages
|
||||
-
|
||||
- Copyright 2013 Joey Hess <joey@kitenet.net>
|
||||
-
|
||||
- Licensed under the GNU GPL version 3 or higher.
|
||||
-}
|
||||
|
||||
module Remote.Helper.Messages where
|
||||
|
||||
import Common.Annex
|
||||
import qualified Git
|
||||
|
||||
showChecking :: Git.Repo -> Annex ()
|
||||
showChecking r = showAction $ "checking " ++ Git.repoDescribe r
|
||||
|
||||
cantCheck :: Git.Repo -> Either String Bool
|
||||
cantCheck r = Left $ "unable to check " ++ Git.repoDescribe r
|
Loading…
Add table
Add a link
Reference in a new issue