Skip to content

Add .git-blame-ignore-revs file#3984

Merged
dgw merged 2 commits intomasterfrom
feat/git-blame-ignore-revs
Sep 18, 2025
Merged

Add .git-blame-ignore-revs file#3984
dgw merged 2 commits intomasterfrom
feat/git-blame-ignore-revs

Conversation

@LeoColomb
Copy link
Copy Markdown
Member

@LeoColomb LeoColomb commented Sep 17, 2025

Should help to clean up blame even if some commits are rewriting the entire codebase.
Follow up of our discussion on https://github.com/YOURLS/YOURLS/pull/3979/files#r2356829698, this is initial stuff to try it out.

You can see it live: https://github.com/YOURLS/YOURLS/blame/feat/git-blame-ignore-revs/includes/functions-api.php
Compared to master: https://github.com/YOURLS/YOURLS/blame/master/includes/functions-api.php

Should help to clean up blame even if some commits are rewriting the entire codebase.
@dgw
Copy link
Copy Markdown
Member

dgw commented Sep 18, 2025

Oh, neat, I didn't know about this feature. Nice idea!

https://docs.github.com/en/repositories/working-with-files/using-files/viewing-and-understanding-files#ignore-commits-in-the-blame-view

@ozh
Copy link
Copy Markdown
Member

ozh commented Sep 18, 2025

Damn that's good. Git is such an awesome tool really. Nice find Leo.

Copy link
Copy Markdown
Member

@ozh ozh left a comment

Choose a reason for hiding this comment

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

👍 👍 👍

@dgw dgw merged commit 142abeb into master Sep 18, 2025
10 checks passed
@dgw dgw deleted the feat/git-blame-ignore-revs branch September 18, 2025 19:28
tomtenuta pushed a commit to tomtenuta/YOURLS that referenced this pull request Nov 4, 2025
Should help to clean up blame even if some commits are rewriting the entire codebase.
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.

3 participants