Skip to content

Try .git-blame-ignore-revs #1972

Closed
Closed

Description

@david-crespo

It seems this works on GitHub now. If we have PRs like #1971 where all we do is shuffle around files and imports, that stuff is useless in the blame view, so we can filter it out.

https://github.com/orgs/community/discussions/5033#discussioncomment-2318478

Activity

  1. david-crespo commented on Feb 23, 2024

    @david-crespo
    CollaboratorAuthor

    Tried in 1745a75 and reverted in e2e56d8. It did work to filter the git blame, but I realized that if there are any changes in the commit that you don't want to hide the blame for, you are in trouble. For example, with the most recent commit ignored, you can't tell from the blame when we added the ~/* alias in the tsconfig.

    https://github.com/oxidecomputer/console/blame/e2e56d879ca14a5b22080aacaefdea71e365e618/tsconfig.json#L15

    So if we want to use this feature in the future (and it is very cool) we need to make sure that the commits in question don't have any lines we want to be able to blame.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions