Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #50400
Closed (moved) (moved)
Open
Created Aug 16, 2018 by James Ramsay (ex-GitLab)@jramsay-gitlab🔴Contributor

Honor "squash!" in merge requests

Related to https://gitlab.com/gitlab-org/gitlab-ee/issues/212

When using --autorebase squash! commits behave differently to fixup! commits because a squash combines two commits changes including commit message, and should allow the person squashing the commits to review and modify the commit message.

We should support both in a manner consistent with Git.

Proposal

If a commit contains squash! commits, the user should be shown a prompt to review the commit messages of the commits that will be squashed and be able edit them.

Example:

# This is a combination of 3 commits.
# The first commit's message is:
changed my name a bit

# This is the 2nd commit message:

updated README formatting and added blame

# This is the 3rd commit message:

added cat-file

Links / references

  • https://git-scm.com/docs/git-rebase#git-rebase---autosquash
  • https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
Edited Sep 09, 2018 by James Ramsay (ex-GitLab)
Assignee
Assign to
Time tracking