look up --to and --from remote names only once
This will speed up commands like move and drop.
This commit is contained in:
parent
0a36f92a31
commit
df21cbfdd2
10 changed files with 30 additions and 33 deletions
|
@ -33,7 +33,7 @@ seek :: [CommandSeek]
|
|||
seek = [withField "format" formatconverter $ \f ->
|
||||
withFilesInGit $ whenAnnexed $ start f]
|
||||
where
|
||||
formatconverter = maybe Nothing (Just . Utility.Format.gen)
|
||||
formatconverter = return . maybe Nothing (Just . Utility.Format.gen)
|
||||
|
||||
start :: Maybe Utility.Format.Format -> FilePath -> (Key, Backend) -> CommandStart
|
||||
start format file (key, _) = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue