Skip to content

Respect linguist-generated git attribute #18

Description

@drivasperez

I'm already finding this useful, so thanks! The monorepo at my work has a lot of autogenerated files, and most substantial changes end up regenerating them, which can lead to quite noisy diffs. Github's code review view will auto-hide files marked as linguist-generated or binary in the repo .gitattributes file, and I think it'd be useful to replicate that here?

Happy to put up a PR, but thought I'd open an issue first to see if you agree. I think the best approach is probably to shell out to git if in a git repo (or git-colocated jj repo) and run git attr, rather than parse the .gitattributes file in node, as I think the logic for git attributes can get pretty gnarly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions