[FEATURE REQUEST] Do not include `linguist-generated=true` files in any diffs.

Resolved 💬 2 comments Opened Jan 23, 2026 by jonathannen Closed Feb 28, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

We unfortunately have a lot of generated files in our repository. Most of these relate to types, GraphQL, and the like. We mark them linguist-generated=true in .gitattributes and this removes them from Github diffs.

Claude code has a couple of problems with this. One is that it will diff these files when they change, which is usually not particularly useful. Plus often claude will modify these files or create similar ones. If that gitattribute is present it's a very strong signal that it's a generated file.

Proposed Solution

I'd like those files excluded from any diff.

Alternative Solutions

_No response_

Priority

Low - Nice to have

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗