From 4f398613102dd64e936960b6354f6fc6a46bd936 Mon Sep 17 00:00:00 2001 From: Alejo Amiras Date: Wed, 12 Aug 2026 16:50:38 +0000 Subject: [PATCH] chore: re-stage .nr files the pre-commit fmt hook rewrites Prevents recurrence of committing pre-format versions (root cause of the fmt drift fixed in the previous commit). Co-Authored-By: Claude Fable 5 --- .husky/pre-commit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index 56157a38..07b9f8fe 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,4 @@ aztec-nargo fmt +# fmt may rewrite staged .nr files; re-stage them so the commit matches the working tree +git diff --name-only --cached -- "*.nr" | xargs -r git add yarn lint-staged