2

Is it possible to use any git hooks with git notes?

In other words, are any git hooks triggered by a git notes add -m "Some note"?

I have tried a few hooks (update, post-commit) but so far none seem to be triggered on a git notes add.

Brett DeWoody
  • 59,771
  • 29
  • 135
  • 184
  • I think the answer is no. https://git-scm.com/docs/githooks mentions notes only for `post-rewrite` hook and only in the context of notes copying during commands that rewrite commits (`git commit --amend`, `git rebase`). – phd May 02 '19 at 23:13

1 Answers1

2

No: no client-side hook is triggered by git notes add

And furthermore, that feature was not ever requested, it seems, in the Git mailing list.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250