-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cherry Pick #4951
Comments
It should be possible to drag entire commits from one lane to another, or hunks from one lane to another as well. Is this something you tried, or is there an issue I am missing? If so, maybe upload a video so it's clear what is attempted. |
It's easily reproducible now, thank you! On stderr, one will see this right after (but no 'typical' error):
CC @Caleb-T-Owens, who told me he loves fixing stuff :). |
@Byron This may be another issue, in fact the main thing I'm wondering is why I can't drag a file to a virtual branch that already exists |
For the above reasons, this resulted in me having to only create a new virtual branch, thus realizing the problem in the beginning |
It's true that it's also not possible to add a file to an existing virtual branch when dragged from a commit. The UI indicates that a new branch can be created from it though, even though it doesn't currently claim that it can be dragged to an existing branch. Since this is probably something with the drag-logic, let me CC @ndom91 as well. |
Hi @Byron, thanks for tagging me! We've noticed that our frontend isn't updating selected ownership state correctly. (Easy repro is having two branches, one with for hunks in a file. Drag two of the hunks to the other lane. Then try drag the other hunks by dragging and dropping the entire file into the second branch). I suspect that this is likely related. |
Related issue: #4934 |
Can this issue be fixed in the next release? It feels like it affects the experience quite a bit |
Hi! I’m currently working on a fix so this should be resolved in the next release. Sorry for any trouble that its causing you.
As a temporary workaround, if you find that files aren’t dragging correctly, you can press “Cmd+R” to reload the application state which should make them correctly draggable again.
… On 23 Sep 2024, at 13:05, 梦曦·花已落 ***@***.***> wrote:
Can this issue be fixed in the next release? It feels like it affects the experience quite a bit
—
Reply to this email directly, view it on GitHub <#4951 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADF4JKZNO6GWFQURP2NN2KDZX7YZJAVCNFSM6AAAAABOO53YNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRXHA4TGMJYGI>.
You are receiving this because you were mentioned.
|
I've seen the latest release mention that there is a fix, but it seems that neither issue has been addressed. @Caleb-T-Owens |
Is this still a concern? @Byron |
There have been a lot of changes and I am definitely not caught up :/, but would think that @Caleb-T-Owens has all the answers (especially since two weeks are a lot of time). |
@LovesAsuna Sorry for the long wait and back and forward It seems like this is a FE issue. The UI shouldn't highlight the possibility of creating a new branch from a file that's already been committed. I'll fix that |
Is "Invalid args |
@LovesAsuna it is in the sense that we should consider it an invalid operation. In order to move files, they should first be uncommitted and then drag-and-dropped. The UI should stop you ortherwise |
But how do I copy a commit to another virtual branch? |
You can drag the whole commit. If the files in the commit are not "locked" to that branch, you should be able to drag it to another branch. "Locked" here just means that it has changes that overlap with changes in other files in the origin branch |
Dragging a commit directly changes the original virtual branch (even if it's not locked), not the cherry pick logic. |
Oh sorry, I had misunderstood. That is not possible right now. I want to understand fully your workflow, though: What you wanted to do is to be able to duplicate just enough changes and move them into the second one. Have it integrated and then at some point rebase the main branch on top of the latest version or what's on origin Did I understand that correctly? |
Yes, this usually happens when there are two parallel pieces of work, but there is partially coupled code in them that leads to having to do this |
@LovesAsuna I see. I definitely have been in that situation. In some cases, stacking changes (see #3031) should enable you to get around this kind of issues. I think your specific one wouldn't be fully supported still, because (if I understood correctly) you don't want to submit the main branch. I'll bring it up with the team, though. It would be nice to have a way to achieve that in GitButler |
Thanks for reporting this and the subsequent clarifications! |
Version
0.12.25
Operating System
Mac OS X
Distribution Method
dmg (Apple Silicon)
Describe the issue
I want to cherry pick a commit from a virtual branch to another. Because my changes are based on part of one of the virtual branches. This virtual branch has not yet been integrated into the target branch, so I'd like to do a cherry pick first (not a full commit, but maybe just a part of a commit or a file).
How to reproduce
No response
Expected behavior
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: