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

Re: [PATCH] worktree: record creation time and free-form note

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
Jun 5, 2026, 16:50 UTC
Message-ID
<563fd8eb-187e-489b-af15-1551697b8849@app.fastmail.com>
In-Reply-To
<b1b15a47-0842-4a26-9a95-bfdae12799e0@gmail.com>
On Fri, Jun 5, 2026, at 17:17, Phillip Wood wrote:
Show 10 quoted lines
>>[snip]
>> Add per-worktree metadata so users can answer "what is this worktree
>> for, and when did I make it?" without resorting to external notes.
>
> A couple of thoughts related to this
>
> Isn't "what is the worktree for" a property of the branch that's checked
> out, not the worktree itself? We already have
> branch.<branch>.description to add a descritpion to a branch. If you
> have a detached HEAD it is trickier though.
Some worktrees that I have that are not about one branch:
• For building and deploying the code
• For spelunking old versions
• For testing building the code/app with all untracked files deleted
  (“cleanroom”) to compare with my own setup or my coworkers when
  the regular working trees get apparently gummed up
• (for Git) with leak checker
• (for Git) with breaking changes (when testing git-whatchanged(1) I
  think?)

I would also like to (some time) set up a worktree or multiple of them to run tests on each commit.

***

If I would feel like needing a note about these worktrees and it wasn’t supported by git(1)? I guess I would use a per-worktree ref. That would even feel more “Git” than an administrative file, but I guess there are technical reasons for why they are not used for these things.

>[snip]
Previous: Kiesel, NorbertNext: Chris Torek
Message 10 of 13 in “worktree: record creation time and free-form note”
  1. worktree: record creation time and free-form noteKiesel, Norbert, Jun 2, 2026
  2. Junio C HamanoJun 2, 2026
  3. Junio C HamanoJun 2, 2026
  4. Kiesel, NorbertJun 3, 2026
  5. Kiesel, NorbertJun 3, 2026
  6. Junio C HamanoJun 4, 2026
  7. Junio C HamanoJun 8, 2026
  8. Phillip WoodJun 5, 2026
  9. Kiesel, NorbertJun 5, 2026
  10. Kristoffer HaugsbakkJun 5, 2026
  11. Chris TorekJun 5, 2026
  12. Kiesel, NorbertJun 8, 2026
  13. Phillip WoodJun 9, 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.