Skip to content

Avoid duplicate commit messages on squashing commit #4865

@ansidev

Description

@ansidev

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I have two commits A and B that have the same commit message, e.g. "commit message"
I want to squash these commits.
The final commit message will be:

commit message
commit message

Describe the solution you'd like

A clear and concise description of what you want to happen.

The final commit message should be:

commit message

If there are more than three commit messages, we should remove duplicate commit messages. For instance:

Input:

commit message 1
commit message 2
commit message 1

Expected output:

commit message 1
commit message 2

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions