From 6534a6da639859fdd8e115bf056e94859070d0b6 Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Tue, 7 Jan 2025 14:55:52 +0000 Subject: [PATCH] initial idea on `git annex init` hooks --- ...obally_configured__41_____34__annex_init__34___hooks.mdwn | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 doc/todo/Support___40__globally_configured__41_____34__annex_init__34___hooks.mdwn diff --git a/doc/todo/Support___40__globally_configured__41_____34__annex_init__34___hooks.mdwn b/doc/todo/Support___40__globally_configured__41_____34__annex_init__34___hooks.mdwn new file mode 100644 index 0000000000..b5ba7190af --- /dev/null +++ b/doc/todo/Support___40__globally_configured__41_____34__annex_init__34___hooks.mdwn @@ -0,0 +1,5 @@ +The idea is stemmed from discussions/problems with using freeze/thaw hooks, and in particular [line of thinking in the comment on specify_freeze__47__thaw_scripts_relative_to_topdir](https://git-annex.branchable.com/todo/specify_freeze__47__thaw_scripts_relative_to_topdir/#comment-c71b25bbd0e3f018e07812965bd6a5b1). ATM `git-annex` does analysis of either repository needs any special handling (adjusted branch, pidlock, etc) during `annex init` and otherwise does not bother. It would make sense to make it possible for a user to also be able similarly to + +- test e.g. if custom freeze/thaw are needed (before even git annex decides to switch to adjusted branches mode) and setup that repo accordingly for git-annex to proceed without flipping out into adjusted branch mode +- may be improved/custom pidlock detection (on one of my servers I remember needing to just hardcode in ~/.gitconfig to use pidlock although that was relevant only for some paths). +- similarly do some other testing which could allow or disallow some git-annex decision such as e.g. use of adjusted unlocked branch