fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
450 stars 10 forks source link

[Feature Request] Interactive rebase quick actions #2167

Closed Lonli-Lokli closed 3 months ago

Lonli-Lokli commented 3 months ago

When I am selecting Interactive Rabse quick actions, there are several - Reword..., Edit..., Squash into Parent.., Fixup into Parent..., Drop....

I usually use Interactive Rebase option on feature branch to collapse all commits into single on, then rebasing it on top. I was trying to use this feature action to fixup all feature branch commits into one, but it seems like current behavious is very strangee - it change just onee commit an also add parent commit to the tree.

I would like to have an ability to apply samee action (Fixup/Squash) to all the commits in the rang {selected commit via right click}-{last commit in the branch} and select action (fixup/squash) to all of them instead of default Pick

DanPristupov commented 3 months ago
Screenshot 2024-03-11 at 12 27 03
Lonli-Lokli commented 3 months ago

Okay, I didn't know there is this difference when you are selecting multiple commits.

So in my case, assuming that there are 10 branches with active work and each branch has 10 commits, I have to select my commits with Ctrl press, as with Shift pressed you are selecting all the commits, even when they are in different branches.

DanPristupov commented 3 months ago

So in my case, assuming that there are 10 branches with active work and each branch has 10 commits, I have to select my commits with Ctrl press, as with Shift pressed you are selecting all the commits, even when they are in different branches.

Right. Or press Ctrl+Shift+A to set filter on the active branch and make the commit list flat.

Lonli-Lokli commented 3 months ago

Can you clarify then the purpose of those Quick actions?

DanPristupov commented 3 months ago

You you need to reword a commit, you can IR to the parent and set the action as 'Reword or you can select 'Reword' which does the same. Likewise for Edit, Squash, etc.