scanAnnexedFiles in smudge --update

This makes git checkout and git merge hooks do the work to catch up with
changes that they made to the tree. Rather than doing it at some later
point when the user is not thinking about that past operation.

Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
Joey Hess 2021-06-08 11:34:46 -04:00
parent c380687aa3
commit 13b9a288d3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 37 additions and 14 deletions

View file

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2021-06-08T15:21:02Z"
content="""
Made `git-annex smudge --update` run the scan, and so the post-checkout or
post-merge hook will call it.
That avoids the scenario shown above. But adding a lot of files to the
index can still cause a later pause for reconcileStaged without indication
what it's doing.
"""]]