Skip to content

Add a .git-blame-ignore-revs file#23959

Merged
AlexWaygood merged 1 commit intomainfrom
blame-ignore-revs
Mar 15, 2026
Merged

Add a .git-blame-ignore-revs file#23959
AlexWaygood merged 1 commit intomainfrom
blame-ignore-revs

Conversation

@AlexWaygood
Copy link
Member

Summary

This should make it easier to spelunk through the git blame of a file on GitHub. I believe you can also configure git locally to respect this file as well when spelunking through blame, though I've never tried that

Test Plan

Don't know, but I've copied the pattern I've seen e.g. in https://github.com/python/mypy/blob/master/.git-blame-ignore-revs, which I believe has been successful!

@AlexWaygood AlexWaygood requested a review from sharkdp March 14, 2026 22:44
@AlexWaygood AlexWaygood added the internal An internal refactor or improvement label Mar 14, 2026
Copy link
Contributor

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

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

Thank you!

@AlexWaygood AlexWaygood merged commit 76c33d7 into main Mar 15, 2026
43 checks passed
@AlexWaygood AlexWaygood deleted the blame-ignore-revs branch March 15, 2026 16:15
carljm added a commit that referenced this pull request Mar 16, 2026
* main: (131 commits)
  [ty] Fixup examples in `invalid-key` docs (#23968)
  [ty] Fix compiler warning about unused variable (#23967)
  [ty] Sync vendored typeshed stubs (#23963)
  Add a `.git-blame-ignore-revs` file (#23959)
  Revert "[ty] Completely remove the `NoReturn` shortcut optimization" (#23955)
  [ty] Completely remove the `NoReturn` shortcut optimization (#23378)
  [ty] Introduce fast path for protocol non-assignability (#23952)
  Bump typing conformance suite SHA (#23951)
  Minor followup to severity display - use preview function in server instead of checking preview disabled directly (#23950)
  Document editor features for markdown code formatting (#23924)
  [ty] Add `with_recursion_guard()` helpers to `relation.rs` (#23945)
  [ty] Remove `check_optional_method_pair` methods (#23947)
  [ty] Remove unused `CycleDetector::try_visit` method (#23944)
  [ty] Ensure TypedDict subscripts for unknown keys return Unknown (#23926)
  [ty] Fix variance of frozen dataclass-transform models (#23931)
  Display output severity in preview (#23845)
  Revert "[`ruff`] use `bitcode` instead of `bincode`" (#23935)
  Fix shell injection via `shell=True` in subprocess calls (#23894)
  [ty] Refactor `relation.rs` to store state on a struct rather than passing around 7 arguments every time we recurse (#23837)
  Don't return code actions for non-Python documents (#23905)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants