restage pointer file after unlock
authorJoey Hess <joeyh@joeyh.name>
Fri, 18 Feb 2022 18:23:25 +0000 (14:23 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 18 Feb 2022 18:55:52 +0000 (14:55 -0400)
commitc68f52c6a25ebd8a12f4572da53fbba827d682aa
tree225f85a72080bfcfb2811b00b88458ab96494084
parent07215cfeb54c4bcc7524e5eb472c587414adce61
restage pointer file after unlock

This avoids a later git status or similar taking a long time to run
as it runs git-annex smudge once per file. While v9 repositories do
avoid that taking long when the files are small, large files can still
make git status take a very long time.

This does make unlock slower, because now git-annex smudge is being run
once per file unlocked. However, the next commit should speed that up in
many cases.

Sponsored-by: Boyd Stephen Smith Jr. on Patreon
Command/Unlock.hs
doc/todo/git_status_smudges_unncessarily_after_unlock.mdwn