diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 000000000..a4c31afed --- /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 8604ee4c2..bfc8dbd19 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.