Replies: 3 comments 11 replies
-
Welcome @kevincox! What version of git-branchless are you using? In recent versions, That being said, I think there's room to improve the interface for In general, for But to back up a moment, I don't think I understand how you're using If you're trying to rebase ("restack") the current commit onto the latest main branch, then |
Beta Was this translation helpful? Give feedback.
-
@arxanas I think it would be invaluable to be able to delay conflict resolution for later. This is one of the big things that I think Stacked Git (https://github.com/stacked-git/stgit) has gotten right. I can have upwards of 15 different features that are based on top of I think Git Branchless has a lot of merits, for one I really like how it handles commit trees. But restacking operation that locks you in a stateful workflow is holding me back from being able to use it effectively. It feels like Git Branchless could have either Should you have to context switch to a different branch to work on something else or work on a hotfix, you either have to power through conflict resolutions or abort entirely. A more surgical and essentially stateless restack operation (like in Stacked Git) would be a huge boon. |
Beta Was this translation helpful? Give feedback.
-
By the way, these days, you can run e.g. |
Beta Was this translation helpful? Give feedback.
-
I'm new to git-branchless so maybe I missed an option. But in general I only want to restack the current commit/branch. I don't want to worry about other branches because solving conflicts may be a waste of time as more conflicts might appear as the parent gets modified. For the workflow I want I want to check out a commit or branch, then restack it, and be on the same branch with the new restacked commit.
Something like this seems reasonable:
But at this point I am left on the old commit, separated from the branch. Would it be reasonable that if a commit that gets restacked is checked out the checkout follows to the new commit (and branch)?
This problem isn't fundamental. It can be solved just by checking out the branch again. But it is annoying so I thought I would open a discussion about the UX. I see no real reason why someone would want to be left on the old branch.
Beta Was this translation helpful? Give feedback.
All reactions