8 Oct 01:08
[PATCH/RFC] Add post-init hook
From: Jonathan del Strother <jon.delStrother <at> bestbefore.tv>
Subject: [PATCH/RFC] Add post-init hook
Newsgroups: gmane.comp.version-control.git
Date: 2008-10-07 23:10:33 GMT
Subject: [PATCH/RFC] Add post-init hook
Newsgroups: gmane.comp.version-control.git
Date: 2008-10-07 23:10:33 GMT
This adds a configuration variable 'init.post-init-file', to supply a path to a script that will be run following git-init (and thus also git-clone). Signed-off-by: Jonathan del Strother <jon.delStrother <at> bestbefore.tv> --- I have a number of hooks that I have to install every time I create/clone a repository. This patch adds a post-init hook that's perfect for setting up that sort of stuff. It's my first git patch that does much C work (even if it was mostly a cut & paste job) - comments would be welcome. Documentation/config.txt | 4 ++++ Documentation/git-init.txt | 7 +++++++ builtin-init-db.c | 36 ++++++++++++++++++++++++++++++++++-- 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/Documentation/config.txt b/Documentation/config.txt index bbe38cc..746d663 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -881,6 +881,10 @@ i18n.logOutputEncoding:: Character encoding the commit messages are converted to when running 'git-log' and friends. +init.post-init-file:: + A path to a script to run on the initialization of any git + repository. + instaweb.browser:: Specify the program that will be used to browse your working repository in gitweb. See linkgit:git-instaweb[1].(Continue reading)
RSS Feed