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: Add .git-blame-ignore-revs to ignore style in blame view #148

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

matthewfeickert
Copy link
Member

Add a git blame ignore-revs file to automatically ignore commits listed in it from the blame view on GitHub. Include in it style changes added by pre-commit hooks which touch multiple files.

To ignore the commits in the .git-blame-ignore-revs when running git blame locally run: git blame --ignore-revs-file .git-blame-ignore-revs.

c.f.:

Add a git blame ignore-revs file to automatically ignore commits listed
in it from the blame view on GitHub. Include in it style changes added by
pre-commit hooks which touch multiple files.

To ignore the commits in the .git-blame-ignore-revs when running `git blame`
locally run: `git blame --ignore-revs-file .git-blame-ignore-revs`.

c.f.:
* https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt
* https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
@matthewfeickert matthewfeickert self-assigned this Jun 17, 2024
@matthewfeickert matthewfeickert merged commit 2244305 into main Jun 17, 2024
10 checks passed
@matthewfeickert matthewfeickert deleted the chore/add-git-blame-ignore-revs branch June 17, 2024 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant