Skip to content

Commit 13d8a15

Browse files
committed
MNT: Add/run make rule for building an ignore file for git-blame
1 parent c899122 commit 13d8a15

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.git-blame-ignore-revs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Fri Jul 22 22:38:37 2022 -0400 - [email protected] - STY: isort
2+
e22820afac171a3b787509bf49951a0fb37988a2
3+
# Fri Jul 22 22:26:02 2022 -0400 - [email protected] - STY: blue
4+
13f7a4d44414618def188d6303ae2a4c62de6796

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ distclean: clean
7878
$(WWW_DIR):
7979
if [ ! -d $(WWW_DIR) ]; then mkdir -p $(WWW_DIR); fi
8080

81+
.git-blame-ignore-revs:
82+
git log --grep "\[git-blame-ignore-rev\]" --pretty=format:"# %ad - %ae - %s%n%H" \
83+
> .git-blame-ignore-revs
8184

8285
#
8386
# Tests
@@ -288,4 +291,4 @@ rm-orig:
288291
# Remove .orig temporary diff files generated by git
289292
find . -name "*.orig" -print | grep -v "fsaverage" | xargs rm
290293

291-
.PHONY: orig-src pylint all build
294+
.PHONY: orig-src pylint all build .git-blame-ignore-revs

0 commit comments

Comments
 (0)