Re: [PATCH] worktree: record creation time and free-form note
- From
- Kiesel, Norbert <norbert.kiesel@creditkarma.com>
- Date
- Jun 3, 2026, 22:51 UTC
- Message-ID
- <CAPGaHktHLPUeSuhETwyBo+jE2fMu40jHW284PN+2oY1YJ2j0Yw@mail.gmail.com>
- In-Reply-To
- <CAPGaHksjsSefYmGPBxKLw8DDADR5AwTiHTbHq0UyBBtg3CKq9Q@mail.gmail.com>
Hi Junio,
I looked at the usage of `.git/description` and I could not find any usage. We do have Git branch descriptions which are stored in .git/config, but that does not seem to be usable to store the worktree description or the worktree creation timestamp.
So are you ok if I send the PR again, just using "description" instead of "note"?
Best, Norbert
On Tue, Jun 2, 2026 at 5:03 PM Kiesel, Norbert <norbert.kiesel@creditkarma.com> wrote:
Show 39 quoted lines
> > 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: > > > > "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.
-- 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.