summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2026-04-05 02:46:16 +0000
committerBrad Fitzpatrick <brad@danga.com>2026-04-08 15:10:53 -0700
commit647deed2d987e747d68f026a551ea45285852b89 (patch)
tree26513eaefe1122c57dd3df08a1aa1d49504c4a15 /control/controlhttp/controlhttpserver/controlhttpserver.go
parent33cd8ea86b0e45b01809f9063b2de68dd093a168 (diff)
downloadtailscale-647deed2d987e747d68f026a551ea45285852b89.tar.xz
tailscale-647deed2d987e747d68f026a551ea45285852b89.zip
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>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions