pre-init config and hook
authorJoey Hess <joeyh@joeyh.name>
Mon, 13 Jan 2025 18:22:49 +0000 (14:22 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 13 Jan 2025 18:22:49 +0000 (14:22 -0400)
commit42d55bc57c5cc6bbb3da02d8741117f6f4f9f484
treee7cb958b7b772eefbd13874b44048d1e6d70a97f
parent9e95556d694709e1308dc063c49fb66939500887
pre-init config and hook

Added annex.pre-init-command git config and pre-init-annex hook that is run
before git-annex repository initialization.

This can block initialization. Or it can preform pre-initialization
configuration or tweaking.

I left stdio connected while it's running, so it could also be used for
interactive prompting conceivably, although that would want to use /dev/tty
anyway probably in order to not pollute the stdout of a command when
automatic initialization is done.

Sponsored-by: Dartmouth College's OpenNeuro project
Annex/Hook.hs
Annex/Init.hs
CHANGELOG
Types/GitConfig.hs
doc/git-annex-init.mdwn
doc/git-annex.mdwn
doc/todo/Support___40__globally_configured__41_____34__annex_init__34___hooks.mdwn
doc/todo/Support___40__globally_configured__41_____34__annex_init__34___hooks/comment_5_c1687c1d853159debff18ed5c75268ad._comment [new file with mode: 0644]
doc/todo/Support___40__globally_configured__41_____34__annex_init__34___hooks/comment_6_e2e93b900f018d276029389405a09c28._comment [new file with mode: 0644]