add, import: Fix a reversion in 7.20191009 that broke handling of --largerthan and --smallerthan
This commit was sponsored by Jochen Bartl on Patreon.
This commit is contained in:
parent
b390a4012c
commit
7036d0a4c1
7 changed files with 34 additions and 17 deletions
|
@ -39,11 +39,21 @@ import Control.Concurrent.STM
|
|||
|
||||
cmd :: Command
|
||||
cmd = notBareRepo $
|
||||
withGlobalOptions [jobsOption, jsonOptions, jsonProgressOption, fileMatchingOptions] $
|
||||
withGlobalOptions opts $
|
||||
command "import" SectionCommon
|
||||
"add a tree of files to the repository"
|
||||
(paramPaths ++ "|BRANCH[:SUBDIR]")
|
||||
(seek <$$> optParser)
|
||||
where
|
||||
opts =
|
||||
[ jobsOption
|
||||
, jsonOptions
|
||||
, jsonProgressOption
|
||||
-- These options are only used when importing from a
|
||||
-- directory, not from a special remote. So it's ok
|
||||
-- to use LimitDiskFiles.
|
||||
, fileMatchingOptions LimitDiskFiles
|
||||
]
|
||||
|
||||
data ImportOptions
|
||||
= LocalImportOptions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue