From 3e4b5d2d9390780fdb4f917815feb3f648ab4ef4 Mon Sep 17 00:00:00 2001 From: Ilya_Shlyakhter Date: Tue, 19 Nov 2019 17:51:08 +0000 Subject: [PATCH] Added a comment: using hardlinks --- ...mment_3_ee247d9316df963fd584df2199b80fe2._comment | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/forum/How_to_prevent_copies_on_a_single_device_and_use_only_hardlinks/comment_3_ee247d9316df963fd584df2199b80fe2._comment diff --git a/doc/forum/How_to_prevent_copies_on_a_single_device_and_use_only_hardlinks/comment_3_ee247d9316df963fd584df2199b80fe2._comment b/doc/forum/How_to_prevent_copies_on_a_single_device_and_use_only_hardlinks/comment_3_ee247d9316df963fd584df2199b80fe2._comment new file mode 100644 index 0000000000..d272eb88a1 --- /dev/null +++ b/doc/forum/How_to_prevent_copies_on_a_single_device_and_use_only_hardlinks/comment_3_ee247d9316df963fd584df2199b80fe2._comment @@ -0,0 +1,12 @@ +[[!comment format=mdwn + username="Ilya_Shlyakhter" + avatar="http://cdn.libravatar.org/avatar/1647044369aa7747829c38b9dcc84df0" + subject="using hardlinks" + date="2019-11-19T17:51:08Z" + content=""" +I again don't have a full answer, but maybe you could customize git's [post-checkout hook](https://git-scm.com/docs/githooks#_post_checkout)? (You'd need to still call the hook that git-annex installs.) + +Also, I've thrown together a [[FUSE filesystem|https://github.com/broadinstitute/viral-ngs/blob/is-dx-benchmarks/tools/git-annex-remotes/git-annex-on-demand.py]] that fetches git-annexed files on demand, maybe that could be adapted. It only works with locked files and symlinks though. + +What is the reason you don't want to use locked files? You can have different [[worktrees|tips/Using_git-worktree_with_annex]] with symlinks of locked files pointing into the same annex. +"""]]