Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Mark generated files with custom generated git diff driver #425

Copy link
Copy link
@erlend-aasland

Description

@erlend-aasland
Issue body actions

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 😎

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.