petervanderdoes/gitflow — pull request #1 by baby-gnu (2012-07-04 17:15:34+00:00)
Title: Look for hooks in configurable directories.

Only the firts hook found is executed in the following order:

1. per project hooks directory: ${GIT_DIR}/hooks
2. user hooks directory: gitflow.hooks-dir.user
3. system hooks directory: gitflow.hooks-dir.user

* gitflow-common (gitflow_load_settings): Export new environment variables
GITFLOW_HOOKS_DIR_USER and GITFLOW_HOOKS_DIR_SYSTEM.
(run_filter_hook): Run hook in the first found directory.
(run_pre_hook): Ditoo.
(run_post_hook): Ditoo.