Add .git-blame-ignore-revs #1320
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This file contains a list of commits with
mass changes for exclusion by
git blame.Passing
--ignore-revs-file .git-blame-ignore-revsas a flag willtell git to "ignore changes made by the revision when assigning
blame, as if the change never happened".
For example:
For extra hot sauce, ignore white space changes too:
You can make this a default for your repo using:
Also, if you use the GitLens extension for Visual Studio Code, you
can add "-w" as a value to "gitlens.advanced.blame.customArguments".
Note that
git blamedoes not use any file by default, andthe filename
.git-blame-ignore-revsis just a convention.