diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..c772074 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,7 @@ +# This file is used by git blame to ignore commits when annotating a file. +# - https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt +# - https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile + + +# Code formatting +ee3519a80b304bf2a37d91571312740523aa846d diff --git a/package.json b/package.json index 9d1e3d3..464808e 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "validate:default": "renovate-config-validator --strict default.json", "validate:library": "renovate-config-validator --strict library.json", "test": "pnpm run /^validate:/", - "prepare": "pnpm run test" + "prepare": "./scripts/prepare.sh" }, "devDependencies": { "@rightcapital/prettier-config": "6.0.14", diff --git a/scripts/prepare.sh b/scripts/prepare.sh new file mode 100755 index 0000000..f35a603 --- /dev/null +++ b/scripts/prepare.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +echo "-> Configuring git-blame blame.ignoreRevsFile" +git config --local blame.ignoreRevsFile .git-blame-ignore-revs + +pnpm run test