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

Re: [PATCH v3 2/2] config: add "worktree" and "worktree/i" includeIf conditions

From
Patrick Steinhardt <ps@pks.im>
Date
May 13, 2026, 05:56 UTC
Message-ID
<agQSqPY0y9oTY_E8@pks.im>
In-Reply-To
<DIH7FB91JHU1.3OOTDQ6QEZZJZ@black-desk.cn>
On Wed, May 13, 2026 at 10:47:48AM +0800, Chen Linxuan wrote:
Show 9 quoted lines
> On Tue, 12 May 2026 09:14:03 +0200, Patrick Steinhardt wrote:
> > Just because it was explicitly mentioned: we might also want to have a
> > test that verifies this works with early-config parsing. We already have
> > a similar test for "gitdir:" in "conditional include, early config
> > reading".
> 
> As I wrote in the commit message, this is not going to work with
> early-config parsing. I am working on the fix. But I am not quite
> sure that this is a must-fix issue or not.

If it's not working we should have a test for this regardless, I think. We should verify the current behaviour around it and either mark it as `test_expect_success` if that behaviour is intended, or with `test_expect_failure` if it's not.

Thanks!
Patrick
Previous: Chen LinxuanNext: Junio C Hamano
Message 10 of 11 in “includeIf: add "worktree" condition for matching working tree path”
  1. 0/2 includeIf: add "worktree" condition for matching working tree pathChen Linxuan via B4 Relay, Apr 3, 2026
  2. 1/2 config: refactor include_by_gitdir() into include_by_path()Chen Linxuan via B4 Relay, Apr 3, 2026
  3. Patrick SteinhardtMay 12, 2026
  4. 2/2 config: add "worktree" and "worktree/i" includeIf conditionsChen Linxuan via B4 Relay, Apr 3, 2026
  5. Patrick SteinhardtMay 12, 2026
  6. Phillip WoodMay 12, 2026
  7. Junio C HamanoMay 12, 2026
  8. Chen LinxuanMay 13, 2026
  9. Chen LinxuanMay 13, 2026
  10. Patrick SteinhardtMay 13, 2026
  11. Junio C HamanoMay 12, 2026

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.