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

Ignore auto-formatting patches in git blame #17546

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

Snuffleupagus
Copy link
Collaborator

When using Prettier to auto-format (parts of) the code-base you usually end up with huge patches that touch lots of lines without making any actual changes.
This often adds unnecessary steps when using git blame, however it's easy enough to avoid this; please refer to https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view

When using Prettier to auto-format (parts of) the code-base you usually end up with *huge* patches that touch lots of lines without making any actual changes.
This often adds unnecessary steps when using `git blame`, however it's easy enough to avoid this; please refer to https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
@timvandermeij timvandermeij merged commit c9b1a8f into mozilla:master Jan 20, 2024
7 checks passed
@timvandermeij
Copy link
Contributor

Good idea; thank you for adding this!

@Snuffleupagus Snuffleupagus deleted the git-blame-ignore branch January 20, 2024 13:29
@Snuffleupagus
Copy link
Collaborator Author

We may unfortunately need to remove commit 29de9bd from the list, since the GitHub blame-UI seems to choke on that one which outright breaks the functionality :-(

blame

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.

2 participants