add transferkey command

Used by the assistant, rather than copy, this is faster because it avoids
using git ls-files, avoids checking the location log redundantly, and
runs in oneshot mode, avoiding making a commit to the git-annex branch
for every file transferred.
This commit is contained in:
Joey Hess 2012-08-24 17:23:58 -04:00
parent ab5e409a95
commit 8de7699f39
4 changed files with 65 additions and 2 deletions

View file

@ -30,6 +30,7 @@ import qualified Command.Copy
import qualified Command.Get
import qualified Command.FromKey
import qualified Command.DropKey
import qualified Command.TransferKey
import qualified Command.ReKey
import qualified Command.Reinject
import qualified Command.Fix
@ -93,6 +94,7 @@ cmds = concat
, Command.Dead.def
, Command.FromKey.def
, Command.DropKey.def
, Command.TransferKey.def
, Command.ReKey.def
, Command.Fix.def
, Command.Fsck.def