From: "Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com>
To: "Maciej Ciemborowicz" <maciej.ciemborowicz@gmail.com>,
git@vger.kernel.org
Subject: Re: [RFC] worktree: add lifecycle hooks
Date: Sun, 20 Sep 2026 20:25:45 +0200 [thread overview]
Message-ID: <dd6815f4-30ac-4cc6-882e-e8c4eb0936cf@app.fastmail.com> (raw)
In-Reply-To: <20260920173333.1606-1-maciej.ciemborowicz@gmail.com>
On Sun, Sep 20, 2026, at 19:33, Maciej Ciemborowicz wrote:
> Hello,
>
> I'd like to discuss adding native hooks for worktree lifecycle events.
>
> Git currently invokes `post-checkout` after `git worktree add` when a
> checkout is performed. This makes it possible to detect some worktree
> creation cases indirectly. There does not appear to be a native hook for
> other worktree lifecycle operations such as:
>
> git worktree add
> git worktree remove
> git worktree move
> git worktree lock
> git worktree unlock
> git worktree prune
>[snip]
See https://lore.kernel.org/git/7c8b4673-37ac-45fa-ad8c-a1dc09afe5fe@mtasv.net/
next prev parent reply other threads:[~2026-09-20 18:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 17:33 [RFC] worktree: add lifecycle hooks Maciej Ciemborowicz
2026-09-20 18:25 ` Kristoffer Haugsbakk [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-09-22 16:54 Michał Papis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dd6815f4-30ac-4cc6-882e-e8c4eb0936cf@app.fastmail.com \
--to=kristofferhaugsbakk@fastmail.com \
--cc=git@vger.kernel.org \
--cc=maciej.ciemborowicz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox