Skip to content

Commit

Permalink
[git] Ignore python style LSC grpc#33138 in git blame (grpc#33396)
Browse files Browse the repository at this point in the history
PR grpc#33138 is the Large Scale Change in which python style is changed
from yapf to black. Nearly all python files were reformatted. This PR
configures git clients supporting `.git-blame-ignore-revs` feature to
show the original author in `git blame`.

Details:
https://black.readthedocs.io/en/stable/guides/introducing_black_to_your_project.html
GitHub uses this feature by default:
https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
Local git clients can enable this feature with `git config
blame.ignoreRevsFile .git-blame-ignore-revs`.
  • Loading branch information
sergiitk authored and mario-vimal committed Jun 15, 2023
1 parent 2940d73 commit 38fcb77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# .git-blame-ignore-revs
# Migrated python code style from yapf to black
de6ed9ba9fd59f753bbfd4c9a88ff15e03a89de7

0 comments on commit 38fcb77

Please sign in to comment.