From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <junkio@cox.net>
Subject: Re: [PATCH] update-hook: remove all functionality that should be in hooks/post-receive
Date: Sat, 24 Mar 2007 08:14:31 +0000 [thread overview]
Message-ID: <200703240814.35525.andyparkins@gmail.com> (raw)
In-Reply-To: <7v648ro3a3.fsf@assigned-by-dhcp.cox.net>
On Saturday 2007, March 24, Junio C Hamano wrote:
> You know what? I am very tempted to take this patch, while
> dropping the other one. Well, dropping is probably not quite
> accurate, because being a nice person (and I am good looking,
> too ;-), I would probably end up creating "contrib/mailhook/"
> hierarchy and stash the contents of your second patch there
> myself.
I'm inclined to agree. This one is obviously good because the hook
script gets simpler.
> I think I'd better let fancier hooks live in contrib/examples
> hierarchy for people to pick and choose, and keep the default
> templates/ directory lean and clean.
I really wasn't trying to be fancy; just complete. I hope that with
this script that every possible type of reference update is caught and
reported correctly. Unfortunately that makes the script large and
uncomfortable to put in a template directory; particularly as it's only
really useful in a bare repository so every user wouldn't want to have
it. (incidentally, I've long thought that there should be two template
directories - one for bare and one for working)
> The thing is, not many people are interested in sending e-mail
> out from post- any hooks (I don't do so, Linus doesn't either),
I'm not sure that two people is a representative sample for the "not
many people are interested" case. The times I think people will use it
commonly is for internal projects. I have this script activated on
every project I work on, but not one of them is open source. They all
report to the interested parties so they know when to update their own
repositories (or for a manager to see when a release is made).
Having said all that; I don't like the idea of putting this in the
standard git templates; but not (primarily) for the reason of size.
The problem, I think, is that of bug fixes. At the moment, I copy the
script from the templates directory to a projects/git/ directory, then
for each repository within that I symbolic link the
projects/git/project.git/hooks/post-receive file to the master script.
This is still not a good solution because I have to manually copy the
script if I ever upgrade git (or more likely a package manager upgrades
it), so any bug fixes in the hook script don't get automatically
implemented.
So: ideally, what /I/ would like is that git distributes the script in a
standard location like /usr/share/doc/git/contrib/post-receive-emailer
with the execute bit already set; that can be easily linked to or
called from the actual post-receive hook.
Andy
--
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
next prev parent reply other threads:[~2007-03-24 8:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-23 10:21 [PATCH] update-hook: remove all functionality that should be in hooks/post-receive Andy Parkins
2007-03-24 1:09 ` Junio C Hamano
2007-03-24 3:23 ` Linus Torvalds
2007-03-24 3:28 ` Shawn O. Pearce
2007-03-24 8:14 ` Andy Parkins [this message]
2007-03-24 10:26 ` Theodore Tso
2007-03-24 10:41 ` Junio C Hamano
2007-03-24 12:44 ` Andy Parkins
2007-03-24 14:21 ` Theodore Tso
2007-03-24 14:43 ` Francis Moreau
2007-03-24 15:48 ` Andy Parkins
2007-03-24 18:15 ` Francis Moreau
2007-03-25 9:11 ` Andy Parkins
2007-03-25 9:25 ` Shawn O. Pearce
2007-03-25 14:04 ` Francis Moreau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200703240814.35525.andyparkins@gmail.com \
--to=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).