PR-Review #2362
Unanswered
Grueslayer
asked this question in
Q&A
PR-Review
#2362
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am stuck in the process for reviewing my changes with fugitve before creating a PR:
Let's assume you create a branch
featureX
and creating multiple commits and over the time you merge the changes frommain
into your feature branch to keep it up to date.If you want to review those, you may use
:G diff origin/main...
But that's only a diff and you cannot do further editing.
:G difftool origin/main...
fills the quickfix and you can open the file at the change you've done (I can reduce that from hunk to file with
--name-only
or--name-status
).Enter
just opens the current file but does not visualize the changes. If I want to diff this against theorigin/main
branch (where I've done thedifftool
call on) I have to manually retrieve the SHA from the lastest commit on main and then call:Gvdiffsplit 94ce97f1667b0e33b6d42420e8ca98f0a4c3184f
by hand.Sadly this helps only to view the differences because the opened file is the latest committed for the current branch and not my local copy so its read-only).
How we can have something like
:Gstatus
has for unstaged commits where it shows the difference from current files against a named branch and allows to open a diffview between the local file and the remote one where we can fix something before commiting the final commit and creating a PR?#132 is maybe a similar problem
Beta Was this translation helpful? Give feedback.
All reactions