Skip to content

Commit

Permalink
Merge pull request #2748 from effigies/mnt/ignore_revs
Browse files Browse the repository at this point in the history
MNT: Seed ignore-revs file and script to tag new hashes with log entries
  • Loading branch information
effigies authored Apr 5, 2022
2 parents 15a8139 + 89c73b0 commit 2d335ed
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions .maint/update_ignore_revs.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2d335ed

Please sign in to comment.