Skip to content

Mark generated files with custom generated git diff driver #425

Closed
python/cpython
#30745
@erlend-aasland

Description

@erlend-aasland

In .gitattributes, add diff=generated to generated files so one conveniently can configure git diff to ignore them, for example by marking them as "binary files" (git config diff.generated.binary true). This should not impact how GitHub renders such diffs.

Suggestion stolen from @zware on Discord 😎

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