From 243720e934270e03f5efe946f1d1157b122f7c85 Mon Sep 17 00:00:00 2001 From: Sergii Tkachenko Date: Fri, 9 Jun 2023 20:00:22 -0400 Subject: [PATCH] [git] Ignore python style LSC #33138 in git blame (#33396) PR #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`. --- .git-blame-ignore-revs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000000..2fcd0afcd89 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,3 @@ +# .git-blame-ignore-revs +# Migrated python code style from yapf to black +de6ed9ba9fd59f753bbfd4c9a88ff15e03a89de7