summaryrefslogtreecommitdiff
path: root/Remote/External
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2018-02-06 13:03:55 -0400
committerJoey Hess <joeyh@joeyh.name>2018-02-06 13:03:55 -0400
commit7d9f0e0fbea3061a59110696963abec2e166be6d (patch)
tree92b44811c9865a69ee9e836902f3e36a7c199679 /Remote/External
parent5c8150c6ebcdede631c4e75e1169eb28a0d4ea14 (diff)
Added INFO to external special remote protocol.
It's left up to the special remote to detect when git-annex is new enough to support the message; an old git-annex will blow up. This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'Remote/External')
-rw-r--r--Remote/External/Types.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Remote/External/Types.hs b/Remote/External/Types.hs
index 77f3e837eb..9e511e4503 100644
--- a/Remote/External/Types.hs
+++ b/Remote/External/Types.hs
@@ -253,6 +253,7 @@ data RemoteRequest
| SETURIMISSING Key URI
| GETURLS Key String
| DEBUG String
+ | INFO String
deriving (Show)
instance Proto.Receivable RemoteRequest where
@@ -276,6 +277,7 @@ instance Proto.Receivable RemoteRequest where
parseCommand "SETURIMISSING" = Proto.parse2 SETURIMISSING
parseCommand "GETURLS" = Proto.parse2 GETURLS
parseCommand "DEBUG" = Proto.parse1 DEBUG
+ parseCommand "INFO" = Proto.parse1 INFO
parseCommand _ = Proto.parseFail
-- Responses to RemoteRequest.