external special remote protocol: Added GETGITDIR.
This commit is contained in:
parent
eea93b4e2e
commit
57edce8ad9
4 changed files with 8 additions and 0 deletions
|
@ -230,6 +230,7 @@ handleRequest' lck external req mp responsehandler
|
|||
send $ CREDS (fst creds) (snd creds)
|
||||
handleRemoteRequest GETUUID = send $
|
||||
VALUE $ fromUUID $ externalUUID external
|
||||
handleRemoteRequest GETGITDIR = send . VALUE =<< fromRepo Git.localGitDir
|
||||
handleRemoteRequest (SETWANTED expr) =
|
||||
preferredContentSet (externalUUID external) expr
|
||||
handleRemoteRequest GETWANTED = do
|
||||
|
|
2
Remote/External/Types.hs
vendored
2
Remote/External/Types.hs
vendored
|
@ -168,6 +168,7 @@ data RemoteRequest
|
|||
| SETCREDS Setting String String
|
||||
| GETCREDS Setting
|
||||
| GETUUID
|
||||
| GETGITDIR
|
||||
| SETWANTED PreferredContentExpression
|
||||
| GETWANTED
|
||||
| SETSTATE Key String
|
||||
|
@ -184,6 +185,7 @@ instance Receivable RemoteRequest where
|
|||
parseCommand "SETCREDS" = parse3 SETCREDS
|
||||
parseCommand "GETCREDS" = parse1 GETCREDS
|
||||
parseCommand "GETUUID" = parse0 GETUUID
|
||||
parseCommand "GETGITDIR" = parse0 GETGITDIR
|
||||
parseCommand "SETWANTED" = parse1 SETWANTED
|
||||
parseCommand "GETWANTED" = parse0 GETWANTED
|
||||
parseCommand "SETSTATE" = parse2 SETSTATE
|
||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
|||
git-annex (5.20140108) UNRELEASED; urgency=medium
|
||||
|
||||
* Added tahoe special remote.
|
||||
* external special remote protocol: Added GETGITDIR.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Wed, 08 Jan 2014 13:13:54 -0400
|
||||
|
||||
|
|
|
@ -212,6 +212,10 @@ in control.
|
|||
* `GETUUID`
|
||||
Queries for the UUID of the special remote being used.
|
||||
(git-annex replies with VALUE followed by the UUID.)
|
||||
* `GETGITDIR`
|
||||
Queries for the path to the git directory of the repository that
|
||||
is using the external special remote.
|
||||
(git-annex replies with VALUE followed by the path.)
|
||||
* `SETWANTED PreferredContentExpression`
|
||||
Can be used to set the preferred content of a repository. Normally
|
||||
this is not configured by a special remote, but it may make sense
|
||||
|
|
Loading…
Reference in a new issue