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

Re: [PATCH 2/2] maintenance: add option to register in a specific config

From
Taylor Blau <me@ttaylorr.com>
Date
Nov 6, 2022, 00:28 UTC
Message-ID
<Y2b/tCUc3nGI+8M7@nand.local>
In-Reply-To
<20221105184532.457043-3-ronan@rjp.ie>
On Sat, Nov 05, 2022 at 11:45:32AM -0700, Ronan Pigott wrote:
Show 9 quoted lines
> @@ -1502,7 +1504,7 @@ static int maintenance_register(int argc, const char **argv, const char *prefix)
>  		if (!user_config)
>  			die(_("$HOME not set"));
>  		rc = git_config_set_multivar_in_file_gently(
> -			user_config, "maintenance.repo", maintpath,
> +			config_file ?: user_config, "maintenance.repo", maintpath,
>  			CONFIG_REGEX_NONE, 0);
>  		free(user_config);
>  		free(xdg_config);
The "?:" construct is a GNU extension which we do not use.

Thanks, Taylor

Previous: Ronan PigottNext: Taylor Blau
Message 6 of 8 in “git-maintenance quality-of-life improvements”
  1. 0/2 git-maintenance quality-of-life improvementsRonan Pigott, Nov 5, 2022
  2. 1/2 for-each-repo: interpolate repo path argumentsRonan Pigott, Nov 5, 2022
  3. Taylor BlauNov 6, 2022
  4. Derrick StoleeNov 7, 2022
  5. 2/2 maintenance: add option to register in a specific configRonan Pigott, Nov 5, 2022
  6. Taylor BlauNov 6, 2022
  7. Taylor BlauNov 6, 2022
  8. Derrick StoleeNov 7, 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.