From fdc257bac7bf3f3cc4a4633100402acfb7295eb2 Mon Sep 17 00:00:00 2001 From: Andrew Polk Date: Tue, 3 Dec 2024 09:36:18 -0700 Subject: [PATCH] chore: Ignore formatting-only commits in git blame --- .git-blame-ignore-revs | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..8e05365b --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,3 @@ +3f6fbc5aaa6ee21915fbf878ca1fa3d714954538 +90439d6e5d47ba42a4023d925b0463d50205984a +83bba1ff2ed203b7e2d7bf5ed64a17b1a95e8180 diff --git a/package.json b/package.json index 345af161..e1a36643 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "dev": "vite", "build": "vite build", "test": "vitest", - "prepare": "husky install", + "// blame.ignoreRevsFile - This allows blame to see through commits that are only there to format code.": " ", + "prepare": "husky install && git config blame.ignoreRevsFile .git-blame-ignore-revs", "storybook": "storybook dev -p 6006", "strings:download": "crowdin download --config src/l10n/crowdin.yml && yarn strings:compile", "strings:upload": "crowdin upload --config src/l10n/crowdin.yml",