Skip to content

Mark generated files with custom generated git diff driver #425

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 😎

Activity

  1. erlend-aasland commented on Jan 20, 2022

    @erlend-aasland
    Author
  2. isidentical commented on Jan 21, 2022

    @isidentical
    SponsorMember

    If someone takes over, here is a prepared list from a year back. Probably it got changed a lot, but might be useful base python/cpython#20314

  3. erlend-aasland commented on Jan 21, 2022

    @erlend-aasland
    Author
  4. added a commit that references this issue on Jan 21, 2022
    f1e559b
  5. zware commented on Jan 21, 2022

    @zware
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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