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

Re: [DRY HUMOR PATCH] Add a few more values for receive.denyCurrentBranch

From
MMMikael Magnusson <mikachu@gmail.com>
Date
Feb 17, 2009, 01:10 UTC
Message-ID
<237967ef0902161710k4672e972rdffab0357b8872a8@mail.gmail.com>
In-Reply-To
<20090217005824.GA23892@coredump.intra.peff.net>
2009/2/17 Jeff King <peff@peff.net>:
Show 12 quoted lines
> On Mon, Feb 16, 2009 at 10:52:05PM +0100, Johannes Schindelin wrote:
>
>> @@ -75,7 +77,12 @@ static int receive_pack_config(const char *var, const char *value, void *cb)
>>       }
>>
>>       if (!strcmp(var, "receive.denycurrentbranch")) {
>> -             deny_current_branch = parse_deny_action(var, value);
>> +             if (value && !strcasecmp(value, "updateinstead"))
>> +                     deny_current_branch = DENY_UPDATE_INSTEAD;
>> +             else if (value && !strcasecmp(value, "detachinstead"))
>
> Config variables are already lower-cased. ;P
But surely the values are not?
-- 
Mikael Magnusson
Previous: Jeff KingNext: Jeff King
Message 3 of 4 in “Add a few more values for receive.denyCurrentBranch”
  1. Add a few more values for receive.denyCurrentBranchJohannes Schindelin, Feb 16, 2009
  2. Jeff KingFeb 17, 2009
  3. Mikael MagnussonFeb 17, 2009
  4. Jeff KingFeb 17, 2009

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.