Skip to content

[Feature Request] Option to show combined diff (git diff --cc / --remerge-diff) for merge commits #2774

@railapex

Description

@railapex

When viewing a merge commit, Fork shows the diff against the first parent, which includes everything brought in by the merged branch. That makes it impossible to see at a glance which lines were the merger's manual conflict resolution (the "evil merge" content) versus which came in cleanly from the second branch.

CLI git solves this two ways:

  • git diff --cc <merge-sha> — combined diff showing only hunks that differ from both parents. This is what git show defaults to for merge commits.
  • git log --remerge-diff (git 2.36+) — replays the merge and shows exactly where the human deviated from a clean re-merge.

A toggle on the merge-commit diff view — e.g. "Full diff vs first parent" / "Combined (--cc)" / "Remerge diff" — would make merge-commit code review actually viable in Fork. Today this is the one task that drives me back to the CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions