From cef870d89a142a7b5957433584f0e57488fddfbe Mon Sep 17 00:00:00 2001 From: Kevin Cooney Date: Fri, 3 Oct 2025 18:51:20 -0700 Subject: [PATCH 1/2] Add .git-blame-ignore-revs --- .git-blame-ignore-revs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..c9b20528 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,12 @@ +# Since version 2.23 (released in August 2019), git-blame has a feature +# to ignore or bypass certain commits. +# +# This file contains a list of commits that are not likely what you +# are looking for in a blame, such as mass reformatting or renaming. +# You can set this file as a default ignore file for blame by running +# the following command. +# +# $ git config blame.ignoreRevsFile .git-blame-ignore-revs + +# Spotless formatting changes +a439cfb7f5a24c5d685b1493d48b6e4cde913751 From b9dec3d65d24a8871c623f65cbebc0df347de8b8 Mon Sep 17 00:00:00 2001 From: Kevin Cooney Date: Sun, 12 Oct 2025 17:27:37 -0700 Subject: [PATCH 2/2] Document .git-blame-ignore-revs in README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 6442ff98..4ea5156e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# User Documentation + ## adding submodule In order to use, go to your WPILib project directory (the inner one, where the build.gradle file is), and run the command ``` @@ -39,3 +41,11 @@ git submodule update --init --recursive This command will recursively initialize all submodules. This code is still in development, and apis are still subject to change. The most likely thing to get removed is the swerve api, as ctre recently released their own. + +## Developer Documentation + +To ignore code reformatting when running `git blame` run: + +```shell +git config blame.ignoreRevsFile .git-blame-ignore-revs +```