gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Dragging changed files from a commit to the workspace gives an error

Open daniilS opened this issue 7 months ago • 3 comments

Version

0.5.596

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

When you drag a file from a commit, you can drag it to the workspace of other virtual branches (but not to to the workspace on the current branch, surprisingly). However, doing that gives the following error:

Failed to update hunk ownership Invalid args branch for command update_virtual_branch: ownership ranges cannot be empty

Either dragging a committed file to a workspace should uncommit the changes, or it shouldn't be possible to drag the file there.

In addition, dragging a file onto the commit it originally came from gives a Failed to amend commit no rebase was performed error, when it should probably do nothing at all.

image

How to reproduce

No response

Expected behavior

No response

Relevant log output

No response

daniilS avatar Jul 10 '24 10:07 daniilS