Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .githooks/pre-commit

This file was deleted.

16 changes: 0 additions & 16 deletions .githooks/prepare-commit-msg

This file was deleted.

6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,5 @@ dist/
.DS_Store
coverage.out

# Lefthook-generated wrappers (tracked .githooks/prepare-commit-msg is canonical)
.githooks/commit-msg
.githooks/pre-push
.githooks/pre-commit.old
# Lefthook-generated wrappers (logic lives in lefthook.yml)
.githooks/
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ only the human author. Install hooks with:
make hooks
```

This enables lefthook (format/lint/conventional commits) and the tracked
`.githooks/prepare-commit-msg` strip hook.
This enables lefthook (format/lint/conventional commits/co-author strip).

**Cursor / IDE commits:** some editors inject `Co-authored-by: Cursor` via their
own git hooks. Use:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ help: ## Show this help.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'

.PHONY: hooks sync-clone
hooks: ## Install git hooks (lefthook + tracked .githooks prepare-commit-msg).
hooks: ## Install git hooks via lefthook (format, lint, conventional commits, co-author strip).
@command -v lefthook >/dev/null 2>&1 || (echo "install: go install github.com/evilmartians/lefthook@latest" && exit 1)
git config core.hooksPath .githooks
git config --unset core.hooksPath 2>/dev/null || true
lefthook install

sync-clone: ## Hard-reset eyrie to origin/main (post history rewrite).
Expand Down
Loading