You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While there is no "standard" file name for a repository-wide file for this feature, the name .git-blame-ignore-revs has been adopted by most projects (and is supported by GitHub):
Closes#26329
This PR adds the ability to ignore revisions specified in the
`.git-blame-ignore-revs` file in the root of the repository.
![grafik](https://github.com/go-gitea/gitea/assets/1666336/9e91be0c-6e9c-431c-bbe9-5f80154251c8)
The banner is displayed in this case. I intentionally did not add a UI
way to bypass the ignore file (same behaviour as Github) but you can add
`?bypass-blame-ignore=true` to the url manually.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Feature Description
Git has the option to ignore specific revisions in its blame view. This is e.g. useful for hiding automatic refactorings or bulk-reformattings from the history (https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile). It would be nice if Gitea would honour such file(s) in its blame view.
While there is no "standard" file name for a repository-wide file for this feature, the name
.git-blame-ignore-revs
has been adopted by most projects (and is supported by GitHub):GitLab would also use that filename when implementing this feature:
As an example, here is a blame view which uses the file:
Screenshots
The text was updated successfully, but these errors were encountered: