-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Create .git-blame-ignore-revs #2254
Conversation
|
✔️ Deploy Preview for astro-www ready! 🔨 Explore the source changes: a64dca3 🔍 Inspect the deploy log: https://app.netlify.com/sites/astro-www/deploys/61c39719be4d570007a352c0 😎 Browse the preview: https://deploy-preview-2254--astro-www.netlify.app |
✔️ Deploy Preview for astro-docs-2 ready! 🔨 Explore the source changes: a64dca3 🔍 Inspect the deploy log: https://app.netlify.com/sites/astro-docs-2/deploys/61c397198be63a0007e4e65e 😎 Browse the preview: https://deploy-preview-2254--astro-docs-2.netlify.app |
Nice! Might be worth adding For me it added [core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://github.com/withastro/astro.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
remote = origin
merge = refs/heads/main
[branch "jn.add-git-blame-ignore-revs"]
remote = origin
merge = refs/heads/jn.add-git-blame-ignore-revs
github-pr-owner-number = "withastro#astro#2254"
+[blame]
+ ignorerevsfile = .git-blame-ignore-revs
Which I assume would be updated on push maybe? And then generally respected rather than requiring everyone to set it up? |
After that change to the git config Git Lens correctly ignored the mass formatting change! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a quick note about setting this up to CONTRIBUTING.md
! Looks good to me.
* Create .git-blame-ignore-revs * docs: add note about `.git-blame-ignore-revs` Co-authored-by: Nate Moore <nate@skypack.dev>
Changes
.git-blame-ignore-revs
file.git config blame.ignoreRevsFile .git-blame-ignore-revs
Testing
git config only
Docs
git config only