From 89c73b0a5ba9bf84c896e0e6aaf58df89b81af8b Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Mon, 28 Mar 2022 10:28:54 -0400 Subject: [PATCH] MNT: Seed ignore-revs file and script to tag new hashes with log entries --- .git-blame-ignore-revs | 12 ++++++++++++ .maint/update_ignore_revs.sh | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 .git-blame-ignore-revs create mode 100755 .maint/update_ignore_revs.sh diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 000000000..76842576a --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,12 @@ +# 2021-11-05 - markiewicz@stanford.edu - STY: Update black config +d2ad20301306f283d504ec7b5a1bd73ce58c2b11 +# 2021-09-22 - code@oscaresteban.es - sty: run black +9e30c22ce8feecbe223fac074a9eefe60ce67785 +# 2021-09-22 - code@oscaresteban.es - STY: Run black on workflows.bold.base to clarify diff in #2547 +a5ce14b0f77782f939f35175a25e195305550da3 +# 2020-08-18 - markiewicz@stanford.edu - STY: black +4c2e1024fbeabd5bc2029c5740f6354e54584740 +# 2020-05-08 - code@oscaresteban.es - sty: run ``black`` on ``fmriprep.cli`` module +7a25b642efeb5fe61f83aabf5469169c1d75770c +# 2017-10-26 - code@oscaresteban.es - [skip ci] STY: minor changes +1a2f9819001509f1eb59e5a56772aa2d5899aba4 diff --git a/.maint/update_ignore_revs.sh b/.maint/update_ignore_revs.sh new file mode 100755 index 000000000..443542d35 --- /dev/null +++ b/.maint/update_ignore_revs.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Tag each rev with a simple log entry +for SHA in $( grep -v "^#" .git-blame-ignore-revs ); do + git log --pretty=format:"# %ad - %ae - %s%n$SHA%n" -n 1 --date short $SHA +done > git-blame-ignore-revs + +# Two-step to avoid the original getting truncated before it's read +mv git-blame-ignore-revs .git-blame-ignore-revs