git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Yaron Wittenstein <yaron.wittenstein@gmail.com>
To: git@vger.kernel.org
Subject: Re: [QUESTION] Tracking HEAD changes?
Date: Mon, 1 Mar 2021 12:02:05 +0200	[thread overview]
Message-ID: <CAGgn8Pcnxu6vQbkpgBf=A-tBdhP5npne-dZpFv9MzdEUuuRYgQ@mail.gmail.com> (raw)
In-Reply-To: <YDyt6h3dphnG8kwk@coredump.intra.peff.net>

Cool, thanks!

On Mon, Mar 1, 2021 at 11:03 AM Jeff King <peff@peff.net> wrote:
>
> On Fri, Feb 26, 2021 at 10:58:37PM +0200, Yaron Wittenstein wrote:
>
> > I'd like to make sure I understand the way things are right now:
> >
> > 1. The reference-transaction hook as it's today doesn't intercept
> > symbolic-references changes. It means that when HEAD changes due to
> > branch-switching the hook won't
> > get called.
> >
> > Are there any other cases that today the transaction won't execute? (I
> > couldn't think of one)
>
> No, I don't think so.
>
> > 2. The mechanisms that handle the changes to index and working-dir are
> > isolated from the one that manages the refs updates.
> >
> > A side-effect to that is the post-index-change hook running before the
> > reference-transaction one.
> > Future code changes to the way git operates could result in the
> > reference-transaction hook running before the post-index-change one.
> >
> > Is that correct?
>
> Yes, that matches my understanding.
>
> -Peff

      reply	other threads:[~2021-03-01 10:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-22  9:12 [QUESTION] Tracking HEAD changes? Yaron Wittenstein
2021-02-23  0:38 ` Jeff King
2021-02-23 20:42   ` Jeff King
2021-02-24 20:21     ` Yaron Wittenstein
2021-02-24 21:03       ` Jeff King
2021-02-25  5:36         ` Patrick Steinhardt
2021-02-25  6:01           ` Yaron Wittenstein
2021-02-25  6:27             ` Patrick Steinhardt
2021-02-25  7:13               ` Junio C Hamano
2021-02-25  7:28                 ` Patrick Steinhardt
2021-02-25  7:50                   ` Yaron Wittenstein
2021-02-26  5:59           ` Jeff King
2021-02-26 20:58             ` Yaron Wittenstein
2021-03-01  9:03               ` Jeff King
2021-03-01 10:02                 ` Yaron Wittenstein [this message]

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGgn8Pcnxu6vQbkpgBf=A-tBdhP5npne-dZpFv9MzdEUuuRYgQ@mail.gmail.com' \
    --to=yaron.wittenstein@gmail.com \
    --cc=git@vger.kernel.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).