From 18dd2a79aad9b2be7814267e8990d7c4bf93409b Mon Sep 17 00:00:00 2001 From: Carlos Alcaraz <193642530+calcarazgre646@users.noreply.github.com> Date: Mon, 15 Jun 2026 01:02:55 -0300 Subject: [PATCH] chore: stop tracking lefthook-local.yml 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. --- .gitignore | 3 +++ lefthook-local.yml | 14 -------------- 2 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 lefthook-local.yml diff --git a/.gitignore b/.gitignore index 1bc3b555b..537212a9e 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/lefthook-local.yml b/lefthook-local.yml deleted file mode 100644 index 438febff5..000000000 --- a/lefthook-local.yml +++ /dev/null @@ -1,14 +0,0 @@ -commit-msg: - commands: - coauthor: - run: | - MSG_FILE="{1}" - TRAILER1="Co-authored-by: Miguel Ángel " - 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