From a07f1b3ff7c23e2221482b78f06efac7d20a6f5d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 11 Feb 2025 16:24:08 +0100 Subject: [PATCH] Bug 39096: Add 'tidy all' commits to a git blame ignore file To get a relevant blame we want to exclude some commits from bug 38664. Test plan: 0. Do not apply this patch 1. % git blame C4/Auth.pm (or other file) Notice that there is a lot of reference to bug 38664 (you can see it with the author "Koha Development Team") 2. Apply this patch 3. Tell git to use this new file: % git config blame.ignoreRevsFile .git-blame-ignore-revs Repeat 1. => There are way less refs to "Koha Development Team" Before: % git blame C4/Auth.pm|grep "Koha Development Team" | wc -l 454 After: % git blame C4/Auth.pm|grep "Koha Development Team" | wc -l 29 QA: Do we add the `git config` command that to ktd so devs won't need to do it? --- .git-blame-ignore-revs | 5 +++++ 1 file changed, 5 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..91d0fe6caee --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,5 @@ +# Bug 38664: (re)Tidy the .vue files - 'semi: true' +8fb859060036dd0a14130ef37f9ea53524ec9178 + +# Bug 38664: Tidy the whole codebase +d659526b5ae3363de6dc7691a782a45aaf781a46 -- 2.34.1