Skip to content

build: ignore the reformat in git blame - #110

Merged
uniqueg merged 1 commit into
devfrom
build/blame-ignore-revs
Nov 7, 2026
Merged

uniqueg merged 1 commit into
devfrom
build/blame-ignore-revs

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Summary

The second of three PRs for #85. It adds .git-blame-ignore-revs and lists 5ba7f6c, the squash commit of #109, which only reformatted the Java code. GitHub's blame view skips the listed commits. Local git blame skips them after git config blame.ignoreRevsFile .git-blame-ignore-revs.

The developer docs for this file come in the third PR, which also adds the formatting and lint check. That PR resolves the issue.

Verification

  • git diff a0b7def 5ba7f6c is empty, so the squash commit has the same tree as the PR head whose bytecode was shown to be unchanged (see style: format the Java code #109).
  • git blame --ignore-revs-file .git-blame-ignore-revs on a reformatted file attributes the lines to their earlier commits.

Review

Light lane: this PR only adds a metadata file and changes no code, so it skips the reviewer subagents.

🤖 Generated with Claude Code

Summary by Sourcery

Enhancements:

  • Add a Git blame ignore-revisions file so the Java-only formatting commit is omitted from blame history.

List the squash commit of #109, which only reformatted the Java code
(its tree is identical to the PR head checked for identical bytecode),
in .git-blame-ignore-revs, so GitHub's blame view skips it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Adds the formatting-only commit to .git-blame-ignore-revs so Git blame can skip it.

  • .git-blame-ignore-revs L1-5

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.16%. Comparing base (5ba7f6c) to head (512e0f2).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #110   +/-   ##
=======================================
  Coverage   62.16%   62.16%           
=======================================
  Files          64       64           
  Lines        2471     2471           
  Branches      257      257           
=======================================
  Hits         1536     1536           
  Misses        794      794           
  Partials      141      141           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review November 7, 2026 16:53
@uniqueg
uniqueg merged commit 2c5bbb7 into dev Nov 7, 2026
25 checks passed
@uniqueg
uniqueg deleted the build/blame-ignore-revs branch November 7, 2026 16:54

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant