f353f13c9d
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! |
||
---|---|---|
.. | ||
Android | ||
android | ||
assistant | ||
backends | ||
bare_repositories | ||
bugs | ||
design | ||
direct_mode | ||
download | ||
encryption | ||
footer | ||
forum | ||
install | ||
internals | ||
license | ||
links | ||
news | ||
not | ||
preferred_content | ||
special_remotes | ||
sync | ||
templates | ||
tips | ||
todo | ||
upgrades | ||
use_case | ||
users | ||
videos | ||
walkthrough | ||
Android.mdwn | ||
assistant.mdwn | ||
automatic_conflict_resolution.mdwn | ||
backends.mdwn | ||
bare_repositories.mdwn | ||
bugs.mdwn | ||
coding_style.mdwn | ||
comments.mdwn | ||
contact.mdwn | ||
copies.mdwn | ||
design.mdwn | ||
direct_mode.mdwn | ||
distributed_version_control.mdwn | ||
download.mdwn | ||
encryption.mdwn | ||
favicon.ico | ||
favicon.png | ||
feeds.mdwn | ||
forum.mdwn | ||
future_proofing.mdwn | ||
git-annex-shell.mdwn | ||
git-annex.mdwn | ||
git-union-merge.mdwn | ||
how_it_works.mdwn | ||
index.mdwn | ||
install.mdwn | ||
internals.mdwn | ||
license.mdwn | ||
location_tracking.mdwn | ||
logo-old-bw.svg | ||
logo-old.png | ||
logo-old.svg | ||
logo-old_small.png | ||
logo.mdwn | ||
logo.svg | ||
logo_small.png | ||
meta.mdwn | ||
news.mdwn | ||
not.mdwn | ||
preferred_content.mdwn | ||
privacy.mdwn | ||
related_software.mdwn | ||
repomap.png | ||
scalability.mdwn | ||
sidebar.mdwn | ||
sitemap.mdwn | ||
special_remotes.mdwn | ||
summary.mdwn | ||
sync.mdwn | ||
testimonials.mdwn | ||
tips.mdwn | ||
todo.mdwn | ||
transferring_data.mdwn | ||
trust.mdwn | ||
upgrades.mdwn | ||
users.mdwn | ||
videos.mdwn | ||
walkthrough.mdwn |