Thanks!Torsten
On Friday, February 11, 2022 at 1:38:33 PM UTC+1 torste...@gmail.com wrote:Hi!Our mode of working requires that we need to do cherry-picks from gerrit quite often. However this is "hidden" in the Download dialog, between several other download options. I wondered if there's an easier way for me to get my cherry-picks.I also searched for a Greasemonkey script, since this tool would allow such a help without the need to modify gerrit itself, but I didn't find anything.Are you aware of something that allows e.g. to get the cherry-pick commandline via a button directly on a patch set, without the download dialog? Or would it be feasible to add a configuration to remove the unneeded download options from the Download dialog?You could try to install the ref-copy plugin [1], together with a small git alias you should have what you need.
~/.gitconfig
-------------------------[alias]cpu = !sh -c 'git fetch origin $1 && git checkout FETCH_HEAD' -
Hi all!Thanks for the nice suggestions. The one provided by Oswald currently seems to be the most promising one, the only downside is: Every user needs to download the script locally. I'd love to have some server-side solution so that everyone could benefit from.@Björn, I see the cherry-pick command also in our version (3.2.8) in the "..." menu - however this opens a dialog to cherry-pick the change into another remote branch, not into my local working branch. Is this different in version 3.3?@Sven, the documentation of the ref-copy plugin is not that verbose. Can you comment on where this plugin provides the ref on the UI? A colleague mentioned that this is added to the Download dialog, so instead of making cherry-picking easier by reducing the clutter around this command, it adds even more clutter to it.