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.

1
  • I think the answer is no. 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). Commented May 2, 2019 at 23:13

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.