aboutsummaryrefslogtreecommitdiff
path: root/Types/Remote.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-10-21 14:36:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-10-21 14:36:09 -0400
commit43201c32868c12461b46dd7e503c653608a40198 (patch)
tree8cc7416d3759619cf04deeaf8f1375e76f70c054 /Types/Remote.hs
parent19e96c4dcf8cf6e78dcc78527530279f205caf98 (diff)
add per-remote-type info
Now `git annex info $remote` shows info specific to the type of the remote, for example, it shows the rsync url. Remote types that support encryption or chunking also include that in their info. This commit was sponsored by Ævar Arnfjörð Bjarmason.
Diffstat (limited to 'Types/Remote.hs')
-rw-r--r--Types/Remote.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Types/Remote.hs b/Types/Remote.hs
index e166d7090..795121763 100644
--- a/Types/Remote.hs
+++ b/Types/Remote.hs
@@ -98,7 +98,9 @@ data RemoteA a = Remote {
remotetype :: RemoteTypeA a,
-- For testing, makes a version of this remote that is not
-- available for use. All its actions should fail.
- mkUnavailable :: a (Maybe (RemoteA a))
+ mkUnavailable :: a (Maybe (RemoteA a)),
+ -- Information about the remote, for git annex info to display.
+ getInfo :: a [(String, String)]
}
instance Show (RemoteA a) where