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

Re: [Patch 1/3] config.c: add conditional include based on worktree.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 13, 2021, 13:03 UTC
Message-ID
<nycvar.QRO.7.76.6.2107131502360.76@tvgsbejvaqbjf.bet>
In-Reply-To
<20210712223139.24409-2-randall.becker@nexbridge.ca>
Hi Randall,
On Mon, 12 Jul 2021, randall.becker@nexbridge.ca wrote:
Show 9 quoted lines
> @@ -300,6 +358,11 @@ static int include_condition_is_true(const struct config_options *opts,
>  		return include_by_gitdir(opts, cond, cond_len, 0);
>  	else if (skip_prefix_mem(cond, cond_len, "gitdir/i:", &cond, &cond_len))
>  		return include_by_gitdir(opts, cond, cond_len, 1);
> +	else if (skip_prefix_mem(cond, cond_len, "worktree:", &cond, &cond_len))
> +		return include_by_worktree(opts, cond, cond_len, 0);
> +	else if (skip_prefix_mem(cond, cond_len, "worktree/i:", &cond,
> +				 &cond_len))
> +		return include_by_worktree(opts, cond, cond_len, 1);
Thank you for not forgetting the `/i` case.

Ciao, Dscho

Show 7 quoted lines
>  	else if (skip_prefix_mem(cond, cond_len, "onbranch:", &cond, &cond_len))
>  		return include_by_branch(cond, cond_len);
>
> --
> 2.32.0
>
>
Previous: randall.becker@nexbridge.caNext: randall.becker@nexbridge.ca
Message 3 of 9 in “includeIf series for worktrees”
  1. 0/3 includeIf series for worktreesrandall.becker@nexbridge.ca, Jul 12, 2021
  2. 1/3 config.c: add conditional include based on worktree.randall.becker@nexbridge.ca, Jul 12, 2021
  3. Johannes SchindelinJul 13, 2021
  4. 2/3 Documentation/config.txt: add worktree includeIf conditionals.randall.becker@nexbridge.ca, Jul 12, 2021
  5. Junio C HamanoJul 14, 2021
  6. Randall S. BeckerJul 14, 2021
  7. Junio C HamanoJul 14, 2021
  8. Randall S. BeckerJul 14, 2021
  9. 3/3 t1305: add tests for includeIf:worktree.randall.becker@nexbridge.ca, Jul 12, 2021

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.