Skip to content

Commit

Permalink
MNT: Add/run make rule for building an ignore file for git-blame
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jul 27, 2022
1 parent fd47cf1 commit 8acd559
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Fri Jul 22 22:38:37 2022 -0400 - [email protected] - STY: isort
7572472ccbaba85565e98bf1b5def0e6957a7d0d
# Fri Jul 22 22:26:02 2022 -0400 - [email protected] - STY: blue
9911244fd3eed7b68f2f8688ff9c7ffe4bd5ad48
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ distclean: clean
$(WWW_DIR):
if [ ! -d $(WWW_DIR) ]; then mkdir -p $(WWW_DIR); fi

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

#
# Tests
Expand Down Expand Up @@ -288,4 +291,4 @@ rm-orig:
# Remove .orig temporary diff files generated by git
find . -name "*.orig" -print | grep -v "fsaverage" | xargs rm

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

0 comments on commit 8acd559

Please sign in to comment.