Support unannex and uninit in direct mode.
In direct mode, it's best to whenever possible not move direct mode files out of the way, and so I made unannex avoid touching the direct mode file at all. That actually turns out to be easy, because in direct mode, unlike indirect mode, the pre-commit hook won't get confused if the unannexed file later gets added back by git add. So there's no need to commit the unannex right away; it can be staged for the user to commit later. This also means that unannex in direct mode is a lot faster than in indirect mode! Another subtle bit is the bookkeeping that is done when unannexing a direct mode file. The inode cache needs to be removed so that when uninit runs getKeysPresent, it doesn't see the cache and think the key is still present and crash when it's not. This commit is sponsored by Douglas Butts. Thanks!
This commit is contained in:
parent
66e3d57149
commit
f353f13c9d
5 changed files with 60 additions and 30 deletions
|
@ -19,3 +19,5 @@ git-annex version: 4.20130601-g7483ca4
|
|||
|
||||
# End of transcript or log.
|
||||
"""]]
|
||||
|
||||
> [[done]]; added support for direct mode --[[Joey]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue