Support working trees set up by git-worktree.

Support working trees set up by git-worktree, by setting up some symlinks
such that git-annex links work right.

Also improved support for repositories created with --separate-git-dir.
At least recent git makes a .git file for those (older may have used a
symlink?), so that also needs to be converted to a symlink.

This commit was sponsored by Nick Piper on Patreon.
This commit is contained in:
Joey Hess 2018-07-18 14:25:03 -04:00
parent ac5680f6f5
commit 081f8e57c6
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 81 additions and 18 deletions

View file

@ -39,6 +39,10 @@ to copy files between the two repos, using space only once. This
works, of course, only on filesystems that support hardlinks, but
that's usually the case for filesystems that support symlinks.
Alternatively, `git worktree` can be used to add another worktree to a git
repository. This way, multiple worktrees can share the same git-annex
object store.
Real world cases
----------------