tailscale/docs
Brad Fitzpatrick 647deed2d9 misc: add install-git-hooks.go and git hook for Change-Id tracking
Add misc/install-git-hooks.go and misc/git_hook/ to the OSS repo,
adapted from the corp repo. The primary motivation is Change-Id
generation in commit messages, which provides a persistent identifier
for a change across cherry-picks between branches.

The installer uses "git rev-parse --git-common-dir" instead of go-git
to find the hooks directory, avoiding a new direct dependency while
still supporting worktrees.

Hooks included:
- commit-msg: adds Change-Id trailer
- pre-commit: blocks NOCOMMIT / DO NOT SUBMIT markers
- pre-push: blocks local-directory replace directives in go.mod
- post-checkout: warns when the hook binary is outdated

Also update docs/commit-messages.md to reflect that Change-Id is no
longer optional in the OSS repo.

Updates tailscale/corp#39860

Change-Id: I09066b889118840c0ec6995cc03a9cf464740ffa
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2026-04-08 15:10:53 -07:00
..
bird wgengine/userspace: add support to automatically enable/disable the tailscale 2021-08-30 10:18:05 -07:00
k8s all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
sysv all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
webhooks all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
windows/policy docs/windows/policy: add CheckUpdates key to tailscale.admx (#19044) 2026-03-23 08:42:45 -04:00
commit-messages.md misc: add install-git-hooks.go and git hook for Change-Id tracking 2026-04-08 15:10:53 -07:00
embed.go docs: add new package to go:embed commit-messages.md 2026-03-17 10:53:55 -07:00