uninit: Avoid buffering the names of all annexed files in memory
Oops, using the same list twice does prevent streaming in constant memory. Sponsored-by: unqueued on Patreon
This commit is contained in:
parent
b8d9c18e98
commit
02cfef1f91
2 changed files with 4 additions and 3 deletions
|
@ -49,6 +49,7 @@ git-annex (10.20230408) UNRELEASED; urgency=medium
|
||||||
* reinject: Fix support for operating on multiple pairs of files and keys.
|
* reinject: Fix support for operating on multiple pairs of files and keys.
|
||||||
* importfeed: Support -J
|
* importfeed: Support -J
|
||||||
* importfeed: Support --json-progress
|
* importfeed: Support --json-progress
|
||||||
|
* uninit: Avoid buffering the names of all annexed files in memory.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Sat, 08 Apr 2023 13:57:18 -0400
|
-- Joey Hess <id@joeyh.name> Sat, 08 Apr 2023 13:57:18 -0400
|
||||||
|
|
||||||
|
|
|
@ -50,13 +50,13 @@ check = do
|
||||||
|
|
||||||
seek :: CommandParams -> CommandSeek
|
seek :: CommandParams -> CommandSeek
|
||||||
seek = withNothing $ do
|
seek = withNothing $ do
|
||||||
l <- workTreeItems ww []
|
|
||||||
withFilesNotInGit
|
withFilesNotInGit
|
||||||
(CheckGitIgnore False)
|
(CheckGitIgnore False)
|
||||||
(WarnUnmatchWorkTreeItems "uninit")
|
(WarnUnmatchWorkTreeItems "uninit")
|
||||||
checksymlinks
|
checksymlinks
|
||||||
l
|
=<< workTreeItems ww []
|
||||||
withFilesInGitAnnex ww (Command.Unannex.seeker True) l
|
withFilesInGitAnnex ww (Command.Unannex.seeker True)
|
||||||
|
=<< workTreeItems ww []
|
||||||
finish
|
finish
|
||||||
where
|
where
|
||||||
ww = WarnUnmatchLsFiles "uninit"
|
ww = WarnUnmatchLsFiles "uninit"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue