From: Junio C Hamano <gitster@pobox.com>
To: Gerrit Pape <pape@smarden.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] contrib/hooks: adapt default Debian install location for contrib hooks
Date: Tue, 20 Sep 2011 12:44:18 -0700 [thread overview]
Message-ID: <7vr53b578t.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20110920111914.17913.qmail@d29ca435be5a3d.315fe32.mid.smarden.org> (Gerrit Pape's message of "Tue, 20 Sep 2011 11:19:14 +0000")
Gerrit Pape <pape@smarden.org> writes:
> diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
> index fa6d41a..ba077c1 100755
> --- a/contrib/hooks/post-receive-email
> +++ b/contrib/hooks/post-receive-email
> @@ -11,11 +11,11 @@
> # will have put this somewhere standard. You should make this script
> # executable then link to it in the repository you would like to use it in.
> # For example, on debian the hook is stored in
> -# /usr/share/doc/git-core/contrib/hooks/post-receive-email:
> +# /usr/share/git-core/contrib/hooks/post-receive-email:
> #
> # chmod a+x post-receive-email
> # cd /path/to/your/repository.git
> -# ln -sf /usr/share/doc/git-core/contrib/hooks/post-receive-email hooks/post-receive
> +# ln -sf /usr/share/git-core/contrib/hooks/post-receive-email hooks/post-receive
This one I do not have any problem with; the leading text makes it very
clear that this is an example that is specific to Debian and that is
good enough to signal readers that they may have to look elsewhere if they
are on a different distribution.
> diff --git a/templates/hooks--post-receive.sample b/templates/hooks--post-receive.sample
> index 7a83e17..e48346e 100755
> --- a/templates/hooks--post-receive.sample
> +++ b/templates/hooks--post-receive.sample
> @@ -12,4 +12,4 @@
> # see contrib/hooks/ for a sample, or uncomment the next line and
> # rename the file to "post-receive".
>
> -#. /usr/share/doc/git-core/contrib/hooks/post-receive-email
> +#. /usr/share/git-core/contrib/hooks/post-receive-email
I am however not sure about this. For one thing, it is not clear that this
(both old and new) text are meant to be Debian specific, and they should
not complain and instead should look for it elsewhere, if the users do not
find the sample in the path that is shown in the file. For another, it is
not "see ... for a sample, OR UNCOMMENT" at all, for readers who are _NOT_
interested in sending e-mails from the hook at all, but the way it is
stated makes it sound as if people who do not want to bother reading the
samples can blindly enable the hook and it is guaranteed that the
particular sample hook satisfies their needs, which is not the case.
Perhaps removing this sample file might be a better option. The first ten
lines or so repeat what the documentation says, which can go stale, and if
we remove them, the only thing that remains is the "see contrib/hooks for
a sample".
Thanks.
next prev parent reply other threads:[~2011-09-20 19:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-20 11:19 [PATCH] contrib/hooks: adapt default Debian install location for contrib hooks Gerrit Pape
2011-09-20 19:38 ` Drew Northup
2011-09-20 19:44 ` Junio C Hamano [this message]
2011-09-26 12:58 ` [PATCH 1/2] contrib/hooks: adapt comment about " Gerrit Pape
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=7vr53b578t.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=pape@smarden.org \
/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).