chore: stop tracking lefthook-local.yml (#1454)

lefthook-local.yml is Lefthook's per-developer override file and is meant to
stay local (the shared hooks live in lefthook.yml). It is currently committed,
so it applies to everyone who clones the repo: a commit-msg hook in it appends
a personal Co-authored-by trailer to every contributor's commit.

Remove it from version control and add it to .gitignore so local overrides stay
local. lefthook.yml (the shared config) is unchanged.

Co-authored-by: Carlos Alcaraz <193642530+calcarazgre646@users.noreply.github.com>
This commit is contained in:
Carlos Alcaraz Gregor
2026-06-14 22:27:47 -07:00
committed by GitHub
co-authored by Carlos Alcaraz
parent f1a50e03ea
commit 2002aa2c07
2 changed files with 3 additions and 14 deletions
+3
View File
@@ -10,6 +10,9 @@ dist/
.env.local
.env.*.local
# Lefthook per-developer overrides (not shared; see lefthook.yml for shared hooks)
lefthook-local.yml
# OS
.DS_Store
Thumbs.db
-14
View File
@@ -1,14 +0,0 @@
commit-msg:
commands:
coauthor:
run: |
MSG_FILE="{1}"
TRAILER1="Co-authored-by: Miguel Ángel <miguel07alm@protonmail.com>"
if ! grep -qF "$TRAILER1" "$MSG_FILE"; then
# Ensure blank line before trailers
if [ -n "$(tail -c1 "$MSG_FILE")" ]; then
echo "" >> "$MSG_FILE"
fi
echo "" >> "$MSG_FILE"
echo "$TRAILER1" >> "$MSG_FILE"
fi