Just starting using v3, even more awesome, thanks!
With git-annex, I take the habit to do copies of files without restriction, as they end up into (cheap) symlink copies. However, if 2 copies are unannexed, only one is restored, the other becomes a broken symlink, so I kind of loose some information (my use case: I have a repo on which I recently started using annex, but most of the files, which i would want to be annexed, are only in git, so my plan is to unninit this repo, delete the .git dir, and then annex everything, as I don't mind the history).
Rafaël
The only way for git-annex to support this in its current state would be for the unannex command to copy the file content from the annex, rather than moving it out. Then multiple links to the same content could be unannexed.
But, this would be slower, and would depend on a later
unused
anddropunused
to actually remove the content. While doable, by use case for unannex is more to quickly undo a mistaken add, and it's unlikely there are multiple symlinks to the same content in this situation. --Joey
You convince me for unannex, but isn't the goal of uninit to revert all annex operations? In the current state, a clean revert is not possible (because of the broken symlinks after uninit). Instead of copying, using hard links is out of question?
For my needs, is the command "git annex unlock ." (from the root of the repo) a correct workaround?