unannex, uninit: Avoid running git rm once per annexed file, for a large speedup.

This commit is contained in:
Joey Hess 2021-02-22 12:56:11 -04:00
parent cddf2343b2
commit 62d5a73bdd
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 21 additions and 6 deletions

View file

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2021-02-22T16:45:46Z"
content="""
Also unannex is slow the same way. Looks like it can easily be fixed using
git command queueing; I see no reason the rm needs to happen before
changes to the working tree, as --cached makes the rm only operate on the
index.
Rest seem fast enough.
"""]]