* Feature request: Specify hooks on the command line
@ 2014-07-17 23:54 Stuart P. Bentley
0 siblings, 0 replies; only message in thread
From: Stuart P. Bentley @ 2014-07-17 23:54 UTC (permalink / raw)
To: git
I'm developing a project called [Plushu][], an ecosystem for creating
plugin-based dedicated user shells, patterned after [Dokku][] (and
similar to git-shell).
[Plushu]: https://github.com/plushu/plushu
[Dokku]: https://github.com/progrium/dokku
Plushu has its own hook system for plugins (so multiple plugins can
listen on a single hook). Right now, to extend Git's hooks to Plushu's
plugins, Plushu's plugin for Git links the "$GIT_DIR/hooks" directory
for all new repositories to a directory with scripts that delegate to
Plushu's hook system.
I'd rather not have to alter the repository directories to create this
interface, so it would be a significant improvement if Git provided some
mechanism to specify hooks on the command line. I was thinking something
like a GIT_HOOKS_DIR environment variable, or perhaps a "--hooks
update=/opt/hook"-style option.
(Perhaps, as a more general solution, there should be a way of
specifying alternatives for individual GIT_DIR subdirectories per-command?)
I'm willing to draft the patch for this if someone could point me to the
relevant spot(s) in the code.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-18 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-17 23:54 Feature request: Specify hooks on the command line Stuart P. Bentley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).