Skip to content

Allow rebase custom patch options for subcommits-started patch if from current branch #5803

Description

@brandondong

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

I was really confused as to why sometimes after creating a custom patch, the custom patch options menu would be missing some options like "Remove patch from original commit" or "Move patch out into index" even though they should be possible.

After playing around some more and looking at the code, it turns out this was due to my inconsistent muscle memory sometimes starting the custom patch from the branches -> subcommits view of the currently checked-out branch vs directly from the commits panel.

Describe the solution you'd like

I don't think this discrepancy should exist. The two views are essentially semantically identical when drilling down on the current branch and all the rebase-related operations work in one versus the other.

Describe alternatives you've considered

N/A

Additional context

This was originally opened as a PR: #5801. Only after creating it did I see lazygit's contribution policy changed recently. Feel free to close/use that PR.

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