-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
git lab mr show
should be able to show the actual MR
#277
Milestone
Comments
Definitely something we want to support! |
Detecting the current merge request is done in the |
prarit
added a commit
to prarit/lab
that referenced
this issue
Sep 2, 2020
Fixes zaquestion#277 It would be nice to provide functionality that provides the patches for an MR in 'git show' format. This is useful for users that want to quickly look at a patchset without checking out a branch. The original patch provided by Eric required users to provide the target remote, even if the target remote was "origin". The additional code provided by Prarit uses the fetch remote name in 'git remote -v' by default unless the user specifies a specific remote. Original patch from Eric, With modifications to automatically find the target remote by Prarit. Co-Developed-by: Eric Engestrom <eric.engestrom@intel.com> Signed-off-by: Prarit Bhargava <prarit@redhat.com>
prarit
added a commit
to prarit/lab
that referenced
this issue
Sep 2, 2020
Fixes zaquestion#277 which requests functionality that provides the patches for an MR in 'git show' format. This is useful for users that want to quickly look at a patchset without checking out a branch. The original patch provided by Eric required users to provide the target remote, even if the target remote was "origin". The additional code provided by Prarit uses the fetch remote name in 'git remote -v' by default unless the user specifies a specific remote. Original patch from Eric, with modifications to automatically find the target remote by Prarit. Add '--patch' option to 'mr show' that displays the patches for a merge request in 'git show' format. Co-Developed-by: Eric Engestrom <eric.engestrom@intel.com> Signed-off-by: Prarit Bhargava <prarit@redhat.com>
prarit
added a commit
to prarit/lab
that referenced
this issue
Sep 2, 2020
Fixes zaquestion#277 which requests functionality that provides the patches for an MR in 'git show' format. This is useful for users that want to quickly look at a patchset without checking out a branch. The original patch provided by Eric required users to provide the target remote, even if the target remote was "origin". The additional code provided by Prarit uses the fetch remote name in 'git remote -v' by default unless the user specifies a specific remote. Original patch from Eric, with modifications to automatically find the target remote by Prarit. Add '--patch' option to 'mr show' that displays the patches for a merge request in 'git show' format. Co-Developed-by: Eric Engestrom <eric.engestrom@intel.com> Signed-off-by: Prarit Bhargava <prarit@redhat.com>
prarit
added a commit
to prarit/lab
that referenced
this issue
Sep 2, 2020
Fixes zaquestion#277 which requests functionality that provides the patches for an MR in 'git show' format. This is useful for users that want to quickly look at a patchset without checking out a branch. The original patch provided by Eric required users to provide the target remote, even if the target remote was "origin". The additional code provided by Prarit uses the fetch remote name in 'git remote -v' by default unless the user specifies a specific remote. Original patch from Eric, with modifications to automatically find the target remote, and the test from Prarit. Add '--patch' option to 'mr show' that displays the patches for a merge request in 'git show' format. Co-Developed-by: Eric Engestrom <eric.engestrom@intel.com> Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now
git lab mr show
only shows a summary with the MR title and description, and a couple meta-data, but not the content of the MR.It would make it much more useful if there was an additional flag (say
-p, --patch
for instance) that would fetch the branch and show it the waygit show ..$remote/$branch
does.(Bonus point for supporting
--reverse
or even making it the default, because the "anti-chronological order by default" ofgit show
annoys me.)The text was updated successfully, but these errors were encountered: