aboutsummaryrefslogtreecommitdiff
path: root/Remote/External
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2018-02-06 13:03:55 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2018-02-06 13:03:55 -0400
commit465da37961ea77a30363d2193e625c5781bd9302 (patch)
tree020054765eee8af0b03a131a16eff7c4f2c2688f /Remote/External
parent34276bb91c9a36854d215ae50bfba2e207a6e6a4 (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 77f3e837e..9e511e450 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.