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
Jeff King <peff@peff.net>
Date
Feb 17, 2009, 00:58 UTC
Message-ID
<20090217005824.GA23892@coredump.intra.peff.net>
In-Reply-To
<bfeaa5d164c9dc2d1080545e4bb9480920762ff2.1234820890u.git.johannes.schindelin@gmx.de>
On Mon, Feb 16, 2009 at 10:52:05PM +0100, Johannes Schindelin wrote:
Show 8 quoted lines
> @@ -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
-Peff
Previous: Johannes SchindelinNext: Mikael Magnusson
Message 2 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.