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

Re: [PATCH] sample pre-commit hook: Use --bool when retrieving config var

From
Johan Herland <johan@herland.net>
Date
Sep 25, 2013, 10:10 UTC
Message-ID
<CALKQrgc_5PhN-PsnCPnxcoN+zNKGo1CEJZw0CZzPXvu6aG23uA@mail.gmail.com>
In-Reply-To
<20130924192259.GN9464@google.com>
On Tue, Sep 24, 2013 at 9:22 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 16 quoted lines
> Johan Herland wrote:
>> Signed-off-by: Johan Herland <johan@herland.net>
>
> Thanks.
>
> What symptoms does this alleviate?  Is this to allow configurations like
>
>         [hooks]
>                 allowNonAscii = 1
>
> and
>
>         [hooks]
>                 allowNonAscii
>
> to do the expected thing, or is it something more subtle than that?

Nothing subtle. Just what you list. And for consistency with the other sample hooks' use of "git config".

...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Jonathan Nieder
Message 3 of 3 in “sample pre-commit hook: Use --bool when retrieving config var”
  1. sample pre-commit hook: Use --bool when retrieving config varJohan Herland, Sep 24, 2013
  2. Jonathan NiederSep 24, 2013
  3. Johan HerlandSep 25, 2013

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.