Repository navigation
Diff whole branch being able to edit the worktree #2021
|
I'm switching from Zed back to neovim. One of my favourite things about zed was the "diff branch" feature, where you get a diff of your entire branch branch against master. I could edit the worktree in this view, which was great to review my own branches before sending them off to review while also being able to edit the files right there. Great for spotting typos or other minor problems and quickly solving them without having to open the files. Then I'd just commit the final few changes and push for the review. Can neogit do this? I can't quite figure out if it can. |
Replies: 1 comment 1 reply
|
Hi @gc-rfranco! Try Diffview's :DiffviewOpen master...HEAD --imply-localThis compares your working tree against the common ancestor with To enable it for Neogit's range diffs too, add this to your Diffview setup: default_args = {
DiffviewOpen = { "--imply-local" },
},Swap |
Hi @gc-rfranco! Try Diffview's
--imply-localoption:This compares your working tree against the common ancestor with
master, so committed branch changes stay visible too. The right pane uses your local files, so you can edit them with your usual LSP.To enable it for Neogit's range diffs too, add this to your Diffview setup:
Swap
masterfor your base branch if needed.