Skip to content

Add Merge Style: Fast-Forward if possible, Merge Commit if necessary #20769

@harmathy

Description

@harmathy

Feature Description

  • In order to keep history clean, I would like to avoid unnecessary merge commits.
  • Rebase is a potentially destructive operation, which may lead to unnecessary conflicts.

Therefore I would like to have a merge style, which conducts a fast-forward merge if possible and created a merge commit if necessary (i.e. diverged target branch).

This would correspond to git merge --ff. Ref. git-merge(1):

       --ff
           With --ff, when possible resolve the merge as a fast-forward (only
           update the branch pointer to match the merged branch; do not create
           a merge commit). When not possible (when the merged-in history is
           not a descendant of the current history), create a merge commit.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions