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

Re: [PATCH] maintenance: improve error reporting for unregister

From
Taylor Blau <me@ttaylorr.com>
Date
Nov 11, 2022, 22:45 UTC
Message-ID
<Y27Qpz7jWafy3FCI@nand.local>
In-Reply-To
<20221110225310.7488-1-ronan@rjp.ie>
On Thu, Nov 10, 2022 at 03:53:10PM -0700, Ronan Pigott wrote:
Show 10 quoted lines
> diff --git a/builtin/gc.c b/builtin/gc.c
> index 1709355bce5a..56b107e7f0b9 100644
> --- a/builtin/gc.c
> +++ b/builtin/gc.c
> @@ -1550,19 +1550,24 @@ static int maintenance_unregister(int argc, const char **argv, const char *prefi
>  		usage_with_options(builtin_maintenance_unregister_usage,
>  				   options);
>
> -	if (!config_file) {
> +	struct config_set cs;
This declaration should go at the beginning of the function.
> +	if (config_file) {
> +		git_configset_init(&cs);
> +		git_configset_add_file(&cs, config_file);
> +		list = git_configset_get_value_multi(&cs, key);

And these assignments conflict with 'ab/config-multi-and-nonbool', but that is a problem for me to figure out, not you.

Thanks, Taylor

Previous: Taylor Blau
Message 4 of 4 in “maintenance: improve error reporting for unregister”
  1. maintenance: improve error reporting for unregisterRonan Pigott, Nov 10, 2022
  2. Taylor BlauNov 11, 2022
  3. Taylor BlauNov 11, 2022
  4. Taylor BlauNov 11, 2022

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.