Skip to content

Draft: feat: implement rebasing#534

Open
jakubbortlik wants to merge 3 commits intoharrisoncramer:developfrom
jakubbortlik:feat/implement-rebasing
Open

Draft: feat: implement rebasing#534
jakubbortlik wants to merge 3 commits intoharrisoncramer:developfrom
jakubbortlik:feat/implement-rebasing

Conversation

@jakubbortlik
Copy link
Collaborator

Closes #497.

This is still in draft because I need to test it thoroughly, but the main functionality works.

There will be a trivial conflict with #530 because both PR's add keybindings in the same place in settings.

end

vim.api.nvim_command(string.format("%s %s..%s", diffview_open_command, diff_refs.base_sha, diff_refs.head_sha))
local full_command = string.format("%s %s..%s", diffview_open_command, remote_target_branch, state.INFO.source_branch)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By using branch names to open the Diffview the view automatically updates after fetching the remote target branch and pulling the source branch which has been rebased on the server.

I still need to find out if this doesn't break anything or if the diff_refs should not be replaced in other parts of the codebase as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve rebasing experience

1 participant