From c1c0b94116301ae42e7a457f94bbfad5a90d92ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Tue, 3 Sep 2024 12:51:11 +0200 Subject: [PATCH] Mention .git-blame-ignore-revs file in CONTRIBUTING.md --- CONTRIBUTING.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b4dbaced61..3587203fd0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -66,3 +66,12 @@ See the [RELEASING.md](RELEASING.md) for instructions. Please note that libraries need bounds on the version of their dependencies to avoid bitrot and be effectively reusable. [CHaP]: https://github.com/input-output-hk/cardano-haskell-packages + +## Improving `git blame` + +You can have `git blame` ignore the reformatting done when [introducting fourmolu](https://github.com/IntersectMBO/cardano-cli/pull/835/commits/9d1fd093071278be77428dba189d958d5b7a7aeb) by setting this in your `.git/config` file: + +```toml +[blame] + ignoreRevsFile = .git-blame-ignore-revs +```