From 24c41524dc56c683d8926671bdd639d7411f2815 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sun, 20 Feb 2022 19:29:13 +0300 Subject: [PATCH] Add .git-blame-ignore-revs (#8464) Ignore mass-reformatting commits Include the clang-format, and the previous astyle Based on the idea from black https://black.readthedocs.io/en/stable/guides/introducing_black_to_your_project.html#avoiding-ruining-git-blame To be used with git CLI when exploring some specific file history ``` $ git blame --ignore-revs-file .git-blame-ignore-revs -- file.cpp ``` Or, by modifying the config to apply globally ``` $ git config blame.ignoreRevsFile .git-blame-ignore-revs ``` (note that the by default config will apply only for the current repository) --- .git-blame-ignore-revs | 4 ++++ 1 file changed, 4 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 0000000000..743ffd3ba7 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,4 @@ +9bdcd4f36a2e5285267b69b17e8fc26482dc1c72 +eea9999dc5eaf464a432f77d5b65269f9baf198d +98125f88605cd7e46e9be4e1b3ad0600dd5d2b51 +91213321df5d49622e7d03426da8366197fe0db0