git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation: fix description for enabling hooks

From
Markus Heidelberg <markus.heidelberg@web.de>
Date
Dec 17, 2008, 19:55 UTC
Message-ID
<200812172055.45905.markus.heidelberg@web.de>
In-Reply-To
<20081217143627.GB5691@genesis.frugalware.org>
Miklos Vajna, 17.12.2008:
Show 13 quoted lines
> On Wed, Dec 17, 2008 at 08:44:40AM +0100, Johannes Sixt <j.sixt@viscovery.net> wrote:
> > > This is true, but having the executable bit is necessary as well. I
> > > think it would be better to just append this requirement instead of
> > > replacing the old one with this.
> > 
> > Markus's proposed new wording is correct because the .sample hooks *are*
> > already executable.
> 
> I thought about the following situation: The user reads the
> documentation while working in an older repo (initialized a few versions
> ago). S/he sees that the .sample suffix is already missing, so s/he
> assumes that the hook is already active. Which is not true, because the
> +x bit is missing.

Valid point, I think, but not critical in this case, since the patch only affected gitrepository-layout(5) and gitglossary(7).

When you want to learn how to use hooks, you will probably rather read githooks(5), where the need for the executable bit is not even explicitly mentioned. Maybe it should be added there?

Markus
Previous: Miklos VajnaNext: Miklos Vajna
Message 5 of 6 in “Documentation: fix description for enabling hooks”
  1. Documentation: fix description for enabling hooksMarkus Heidelberg, Dec 17, 2008
  2. Miklos VajnaDec 17, 2008
  3. Johannes SixtDec 17, 2008
  4. Miklos VajnaDec 17, 2008
  5. Markus HeidelbergDec 17, 2008
  6. githooks documentation: add a note about the +x modeMiklos Vajna, Dec 17, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.