From: Taylor Blau <me@ttaylorr.com>
To: Ronan Pigott <ronan@rjp.ie>
Cc: git@vger.kernel.org, me@ttaylor.com,
"Derrick Stolee" <derrickstolee@github.com>,
"Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Subject: Re: [PATCH] maintenance: improve error reporting for unregister
Date: Fri, 11 Nov 2022 17:45:59 -0500 [thread overview]
Message-ID: <Y27Qpz7jWafy3FCI@nand.local> (raw)
In-Reply-To: <20221110225310.7488-1-ronan@rjp.ie>
On Thu, Nov 10, 2022 at 03:53:10PM -0700, Ronan Pigott wrote:
> 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
prev parent reply other threads:[~2022-11-11 22:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-10 22:53 [PATCH] maintenance: improve error reporting for unregister Ronan Pigott
2022-11-11 2:48 ` Taylor Blau
2022-11-11 22:43 ` Taylor Blau
2022-11-11 22:45 ` Taylor Blau [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y27Qpz7jWafy3FCI@nand.local \
--to=me@ttaylorr.com \
--cc=avarab@gmail.com \
--cc=derrickstolee@github.com \
--cc=git@vger.kernel.org \
--cc=me@ttaylor.com \
--cc=ronan@rjp.ie \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).