Skip to content

Stacked Diffs #837

@radiradev

Description

@radiradev

What maintenance does this project need?

PRs have been becoming very long which makes reviewing collaboration and merging increasingly more difficult. One approach that has become quite prevalent in open-source project to deal with complex PRs is the concept of stacked diffs.

Stacked diffs allow to split the PR into multiple PRs where PRs are dependent on each other and are more easily digestible. This allows developers to work on features without having to wait for those to be merged into main and without increasing the complexity of the original PR.

GitHub does not natively support this feature but it supported through 3rd party extensions such as ghstack. ghstack is used for instance by the torch team - example.

Here is a diagram comparing the original workflow to that of stacked diffs from this blog.
Image

cc: @anaprietonem @mchantry @frazane

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions