Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: configure .git-blame-ignore-revs #54

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions scripts/prepare.sh
Original file line number Diff line number Diff line change
@@ -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