Skip to content

Add an option to generate commits from all changes on a branch #4443

@justinrobots

Description

@justinrobots

Description

Generating new commits from a set of current commits with Commit Composer currently requires picking a commit in the graph and initiating an "AI rebase" for all commits in a branch back to that point. While this is helpful for the specific case where you want to re-generate commits for a selection of commits, this is not very discoverable or intuitive for the case where someone wants to re-compose all commits on a branch.

There should be an option to generate commits for all changes on a branch that is accessible from multiple places:

  • in the context menu when right-clicking a branch ref in the graph
  • as a command palette command
  • from branches in other GitLens views

The "recompose" action in GL is currently called AI Rebase Current Branch onto Commit... (Preview) which only really works for that use case, so we will need a new name for this action - maybe something like Generate New Commits for this Branch (Preview)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds to be looked at

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions