From b27eba38670eea3f7041a9b0fa3c277668ec5204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Tue, 6 Dec 2022 15:36:19 +0900 Subject: [PATCH] chore: add .git-blame-ignore-revs (#11212) --- .git-blame-ignore-revs | 4 ++++ CONTRIBUTING.md | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000000000..a4c31afed65932 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,4 @@ +# chore: enable prettier trailing commas (#11167) +134ce6817984bad0f5fb043481502531fee9b1db +# chore: rename test packages (#11172) +5170e44920458090b8b43ee9cfe5010c25dfe22b diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8604ee4c25e026..bfc8dbd19f8c33 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,6 +18,15 @@ You can alternatively use [Vite.js Docker Dev](https://github.com/nystudio107/vi > Vite uses pnpm v7. If you are working on multiple projects with different versions of pnpm, it's recommended to enable [Corepack](https://github.com/nodejs/corepack) by running `corepack enable`. +### Ignoring commits when running `git blame` + +We have a `.git-blame-ignore-revs` file to ignore formatting changes. +To make this file used by `git blame`, you need to run the following command. + +```sh +git config --local blame.ignoreRevsFile .git-blame-ignore-revs +``` + ## Debugging To use breakpoints and explore code execution, you can use the ["Run and Debug"](https://code.visualstudio.com/docs/editor/debugging) feature from VS Code.