Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT: Seed ignore-revs file and script to tag new hashes with log entries #2748

Merged
merged 1 commit into from
Apr 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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