Skip to content

Supporting moving fixup commits be last commit in their branch #157

Open
@vlovich

Description

@vlovich

  • I have searched the discussions
  • I have searched the existing issues

Version

0.3

Use Case

Would be nice if git-stack could be taught to handle fixup commits for parent features by making them the new tips. For example, if I have

--- a commit 1
--- b commit 2
--- feature A commit 3
--- feature B commit 4
--- e commit 5
--- feature C fixup! commit 2

I would like git stack --rebase --fixup move to produce:

--- a commit 1
--- b commit 2
--- c commit 3
--- feature A fixup! commit 2
--- feature B commit 4
--- feature C commit 5

Currently the behavior appears to be very inconsistent and never what I want. Either the fixups are ignored or they end up in the wrong branch

--- a commit 1
--- b commit 2
--- feature A commit 3
--- d commit 4
--- feature B fixup! commit 2
--- feature C commit 5

Requirements

git stack --rebase --fixup move should move the fixup commits to be the new tips of the changed branches.

Possible Solutions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUncertainty is involved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions