Skip to content

🐛 git logs for branches ending in .tsx get reported as unused #1571

@DonIsaac

Description

@DonIsaac

Prerequisites

Reproduction url

https://gist.github.com/DonIsaac/281d96b840521bf66e223e41bd0e3e1e

Reproduction access

  • I've made sure the reproduction is publicly accessible

Description of the issue

When I (or my colleagues) create a branch ending in .ts, .tsx (etc), knip reports files in .git/logs for those branches as unused files. We can solve this by adding .git/** to "ignore" but these should be ignored by default.

Image

Expected Behavior

.git should be ignored by default

Actual Behavior

Files get reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions