Re: [PATCH] worktree: record creation time and free-form note
- From
- Kiesel, Norbert <norbert.kiesel@creditkarma.com>
- Date
- Jun 3, 2026, 00:03 UTC
- Message-ID
- <CAPGaHksjsSefYmGPBxKLw8DDADR5AwTiHTbHq0UyBBtg3CKq9Q@mail.gmail.com>
- In-Reply-To
- <xmqq1peots9i.fsf@gitster.g>
Yes, I could change my PR to use $GIT_COMMON_DIR/worktrees/$worktree/description instead of the currently used $GIT_COMMON_DIR/worktrees/$worktree/note.
Give me a day, and I can create the updated diff.
Best, Norbert
On Tue, Jun 2, 2026 at 4:52 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 17 quoted lines
> > "Kiesel, Norbert" <norbert.kiesel@creditkarma.com> writes: > > > From 130cd5e4a25e6672b2a97268e1100b6ef03fa552 Mon Sep 17 00:00:00 2001 > > From: Norbert Kiesel <norbert.kiesel@creditkarma.com> > > Date: Mon, 1 Jun 2026 17:03:39 -0700 > > Subject: [PATCH] worktree: record creation time and free-form note > > > > Add per-worktree metadata so users can answer "what is this worktree > > for, and when did I make it?" without resorting to external notes. > > Although I am not personally interested in this topic all that much, > let me point out that we have $GIT_DIR/description file that may be > useful for something like this. It has been the canonical place for > the main repository to identify itself long before secondary worktrees > were invented and $GIT_COMMON_DIR/worktrees/$worktree/description would > be a natural extension of the concept, I'd presume.
-- Norbert Kiesel | Staff Software Engineer | Credit Karma norbert.kiesel@creditkarma.com | www.creditkarma.com This email may contain confidential and privileged information. Any review, use, distribution, or disclosure by anyone other than the intended recipient(s) is prohibited. If you are not the intended recipient, please contact the sender by reply email and delete all copies of this message.