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.
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-generatedorbinaryin the repo.gitattributesfile, 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.