Thread View: linux.kernel.git
1 messages
1 total messages
Started by Junio C Hamano
Fri, 13 Nov 2026 18:59
Re: [PATCH v5 4/5] ref-filter: add %(currentworktree)
Author: Junio C Hamano
Date: Fri, 13 Nov 2026 18:59
Date: Fri, 13 Nov 2026 18:59
17 lines
13306 bytes
13306 bytes
Jasper Mayone <me@jaspermayone.com> writes: > %(worktreepath) names the worktree that has a branch checked out, or > is rebasing or bisecting it, but a format cannot tell if that worktree > is the current one. Comparing %(worktreepath) with a fixed path in > %(if:equals=...) does not work for every path, because a ")" ends the > atom. > > Add %(currentworktree), which gives the path of the current worktree > when that worktree has the branch, and an empty string otherwise. "has the branch checked out"? > branch.c records these branches when it reads the worktrees, in a > second map next to the one that %(worktreepath) uses, so the lookup is > one map lookup per ref.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads