Skip to content

Feature request: exclude/ignore files from the diff (e.g. generated files) #168

Description

@turygo

Hi, thanks for lumen — it's become my go-to diff viewer!

One small thing that would make it even better: a way to exclude certain files from the diff. Things like lock files and auto-generated code (*.lock, dist/**, generated protobuf/codegen output, etc.) tend to produce huge, noisy diffs that I almost never want to review, and right now there's no way to hide them.

From what I can see, --file is an exact-match allowlist only, so manually listing everything I do want isn't practical when there are many files.

Would it be possible to add an --exclude flag (ideally with glob support, and maybe a matching exclude field in lumen.config.json)? That would let me set it once per project and keep generated files out of the way.

Thanks for considering it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions