Thread (12 messages) 12 messages, 3 authors, 2021-03-01

Re: [QUESTION] Tracking HEAD changes?

flat view

From: Yaron Wittenstein <hidden>
Date: 2021-03-01 10:03:59

Cool, thanks!

On Mon, Mar 1, 2021 at 11:03 AM Jeff King [off-list ref] wrote:
On Fri, Feb 26, 2021 at 10:58:37PM +0200, Yaron Wittenstein wrote:
quoted
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.
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help