diff options
Diffstat (limited to 'RemoteDaemon/Endpoint/GitAnnexShell/Types.hs')
-rw-r--r-- | RemoteDaemon/Endpoint/GitAnnexShell/Types.hs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/RemoteDaemon/Endpoint/GitAnnexShell/Types.hs b/RemoteDaemon/Endpoint/GitAnnexShell/Types.hs deleted file mode 100644 index dd8b59d1d..000000000 --- a/RemoteDaemon/Endpoint/GitAnnexShell/Types.hs +++ /dev/null @@ -1,29 +0,0 @@ -{- git-remote-daemon, git-annex-shell endpoint, datatypes - - - - Copyright 2014 Joey Hess <joey@kitenet.net> - - - - Licensed under the GNU GPL version 3 or higher. - -} - -{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} -{-# OPTIONS_GHC -fno-warn-orphans #-} - -module RemoteDaemon.EndPoint.GitAnnexShell.Types where - -import Common.Annex -import qualified Git.Types as Git -import qualified Utility.SimpleProtocol as Proto -import RemoteDaemon.Types (RemoteName, RefList) - -data Notifications - = CHANGED RemoteName RefList - -instance Proto.Sendable Notifications where - formatMessage (CHANGED remote refs) = - ["CHANGED" - , Proto.serialize remote - , Proto.serialize refs - ] - -instance Proto.Receivable Notifications where - parseCommand "CHANGED" = Proto.parse2 CHANGED |