Skip to content
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

Add git lab -d command #48

Open
kostajh opened this issue Oct 4, 2023 · 1 comment
Open

Add git lab -d command #48

kostajh opened this issue Oct 4, 2023 · 1 comment

Comments

@kostajh
Copy link
Contributor

kostajh commented Oct 4, 2023

Would be nice to support git lab -d {MR or URL}, as an equivalent to git review -d {changeId or URL}

@dancysoft
Copy link
Collaborator

From git review docs.

     -d change, --download=change
             Download change from Gerrit into a local branch. The branch will
             be named after the patch author and the name of a topic.  If the
             local branch already exists, it will attempt to update with the
             latest patchset for this change.

I personally use -x a lot:

    -x change, --cherrypick=change
             Apply change from Gerrit and commit into the current local branch
             ("cherry pick").  No additional branch is created.

             This makes it possible to review a change without creating a lo-
             cal branch for it. On the other hand, be aware: if you are not
             careful, this can easily result in additional patch sets for de-
             pendent changes. Also, if the current branch is different enough,
             the change may not apply at all or produce merge conflicts that
             need to be resolved by hand.

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

No branches or pull requests

2 participants